Requests
Send HTTP requests and read response bodies.
Request options
| Field | Type | Description |
|---|---|---|
| Url | string | Required HTTP or HTTPS URL. |
| Method | string? | HTTP method; defaults to GET. |
| Headers | {[string]: string}? | Request headers. |
| Cookies | {[string]: string}? | Cookies sent with the request. |
| Body | string? | Optional binary request body. |
HTTP response
| Field | Type | Description |
|---|---|---|
| Success | boolean | Whether the response status is successful. |
| StatusCode | number | Numeric HTTP status. |
| StatusMessage | string | HTTP reason phrase. |
| Headers | {[string]: string} | Response headers. |
| Body | string | Response bytes, limited to 16 MiB. |