You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"GET"/"POST" specifies how to send the request. If POST is used, then content should be filled in.
content
This is the content to send with a POST.
rejectUnauthorized
(HTTPS only) whether to accept unvalidated HTTPS certificates; true/false
timeout
How long to wait for a response - 3000ms if unspecified.
retries
How many times to attempt a request - 3 if unspecified.
ca
(HTTPS) Additional certificate authorities to validate connection with
headers
object with named values; copied to header object (no HTTP character escapes)
onReply
callback to call when response is done. If this is specified, then the request is done asynchronously; otherwise the request is synchronous and completes before the function returns
Results with an object with the following fields....
HTTP Response field
Description
content
string content from request
statusCode
number indiciating the response code form the server
status
text status from server
headers
array of header from response (should really be an object, indexes are field names with field values specified)
Http Request/Server Client fields
Name
Description
url
the URL requested
connection
same as a Websocket Connection object
headers
headers from the http request
CGI
Parsed CGI Parameters from URL
content
if the message was a POST, content will be non-null
Server Client Events
Event Name
Event Description
message
callback receives a message argument, its type is either a string or an ArrayBufer