ProtoFlux:GET String

From Resonite Wiki
Revision as of 16:23, 12 April 2024 by 989onan (talk | contribs) (fix category)
GET String
*
OnSent
URL
OnResponse
OnError
OnDenied
StatusCode
Content
Network

GET String sends a HTTP request with GET method on call and decode its content as if the response has header of Content-Type: plain/text; charset=utf-8. So this is not suitable for binary-transmission.

This node is best used with an impulse from the client actually wanting to fulfill the data transfer task. See Security/Consent and surrounding info.

Inputs

* (AsyncCall)

Trigger to send a get request with a header of Content-Type: plain/text; charset=utf-8 to the URL (Uri) server location

URL (Uri)

The server location to send the get request to.

Outputs

OnSent (AsyncCall)

Fires immediately after the request is sent, so multiple async functions can happen in parallel.

OnResponse (Continuation)

Fires after the server has responded with either (TODO: Which responses are valid?) HTTP code and sent a string based response. The node will output these to their respective outputs during this pulse.

OnError (Continuation)

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


OnDenied (Continuation)

This article or section is a Stub. You can help the Resonite Wiki by expanding it.


StatusCode (HTTP Status Code)

The code that the server responded with, no matter if it failed, was denied, succeeded at a response, or returned an error. This only exists during the OnResponse (Continuation), OnError (Continuation), and OnDenied (Continuation) impulses.

Content (String)

The response that the server gave if it was a string. This only exists during the OnResponse (Continuation) impulse.