Rate this page:

HttpRequestOptions

Advanced HTTP request options

Props

enableSystemLog

Copy URL
enableSystemLog: 

false

|

undefined

|

true

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

headers

Copy URL
headers: 

string[]

Additional Request headers.

method

Copy URL
method: 

string

|

undefined

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

params

Copy URL
params: 

{[key: string]: string}

|

undefined

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

postData

Copy URL
postData: 

string

|

number[]

Specifies a raw utf-8 encoded data string or an array of bytes in any encoding generated by str2bytes to send as the HTTP request body when 'method' is set to 'POST', 'PUT', or 'PATCH'.

rawOutput

Copy URL
rawOutput: 

false

|

undefined

|

true

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

timeout

Copy URL
timeout: 

number

|

undefined

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