HttpRequestOptions
Advanced HTTP request options.
Same as the Net.HttpRequestOptions.
Props
enableSystemLog
enableSystemLog: false
| undefined
| true
Whether to enable logging the POST request body. The default value is false
headers
headers: string[]
Additional request headers
method
method: string
| undefined
HTTP request method name as a string: 'GET', 'POST' etc. The default value is 'GET'
params
params: {[key: string]: string}
| undefined
Optional request parameters. They can be specified in the URL itself as well
postData
postData: string
| number[]
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
rawOutput: false
| undefined
| true
Whether HttpRequestResult.data should contain a list of 1-byte numbers corresponding to the HTTP response data. If set to false, HttpRequestResult.data is undefined
timeout
timeout: number
| undefined
Timeout (in seconds) that overrides default HTTP request timeout, the default value is 90 seconds. The timeout can only be decreased