Making HTTP Requests
Last updated
Was this helpful?
Last updated
Was this helpful?
The function can be used to fetch data from a url. Make sure to pick either text, buffer or json for the response type
input. The headers
, method
, and body
inputs are optional. Use a data object if you want to pass any headers to the request. The method
input will default to "GET".
The SSE nodes are still very incomplete, and will get expanded upon in the future.
Images can be retrieved by first fetching and selecting buffer for the response type
. The buffer can then be converted to an image using .
An SSE stream can be consumed using the node to initiate a request, and then a Parse SSE Stream
node in a loop to consume messages as they arrive.