If true, requests will automatically resolve 301/302 redirect responses. Defaults: true
Time in seconds to wait for a request to receive a response from the server. Default: 60 seconds.
An object configuring the request.
Optional
data?: { An object containing data to be encoded into the HTTP body of the request.
Optional
encoding?: "json" | "form"Format to encode data
in the body of request.
Optional
headers?: { An object contain key-values to be added as custom headers in the request.
The HTTP method, like "GET", "POST", etc.
Optional
parameters?: { Query parameters to merge with the url. Query parameters can also be part of the original url value.
Optional
password?: stringA password to encode for Basic Authentication.
The absolute HTTP URL for the request.
Optional
username?: stringA username to encode for Basic Authentication.
Static
create
The HTTP and [[HTTPResponse objects are used to run synchronous HTTP requests to communicate with APIs, or just read pages from the web. A full set of custom settings can be passed, and all HTTP methods (GET, POST, PUT, DELETE, etc.) are supported.
Example