Rate this page:

HttpRequestOptions

Advanced HTTP request options

Props

enableSystemLog

Optional
Copy URL
enableSystemLog: 

boolean

If set to true, enables logging the POST request body. False by default

headers

Optional
Copy URL
headers: 

string[]

Additional Request headers.

method

Optional
Copy URL
method: 

string

HTTP request method name as a string: 'GET', 'POST' etc. It is 'GET' by default.

params

Optional
Copy URL
params: 

{[key: string]: string}

Optional request parameters. They can be specified in URL itself as well

postData

Optional
Copy URL
postData: 

string

If 'method' is set to 'POST', 'PUT' or 'PATCH', specifies a raw utf-8 encoded data string that will be sent as the HTTP request body

rawOutput

Optional
Copy URL
rawOutput: 

boolean

If set to true, Net.HttpRequestResult.data will contain a list of 1-byte numbers corresponding to HTTP response data. If set to false, Net.HttpRequestResult.data will be undefined.

timeout

Optional
Copy URL
timeout: 

number

If set, overrides default HTTP request timeout, in seconds, which is 90 seconds by default. Timeout can only be decreased