Requests

Send HTTP requests and read response bodies.

Request options

FieldTypeDescription
UrlstringRequired HTTP or HTTPS URL.
Methodstring?HTTP method; defaults to GET.
Headers{[string]: string}?Request headers.
Cookies{[string]: string}?Cookies sent with the request.
Bodystring?Optional binary request body.

HTTP response

FieldTypeDescription
SuccessbooleanWhether the response status is successful.
StatusCodenumberNumeric HTTP status.
StatusMessagestringHTTP reason phrase.
Headers{[string]: string}Response headers.
BodystringResponse bytes, limited to 16 MiB.

Available functions