Syntax
var request = Http.request( ... );
Description
Represents an HTTP(s) request.
Properties
Parameter | Type | Description |
---|---|---|
[method] | String | HTTP method: GET, HEAD, POST, PUT, DELETE etc. |
[url] | String | URL to send the request to. |
[query] | Object | Request query parameters to append to the URL. |
[headers] | Object | Headers object. |
[timeoutSeconds] | Number | The number of seconds to wait before the request times out. The default value is 100 seconds. |
Methods
Method | Result | Description |
---|---|---|
[send]( [ data ] ) | Http.Response | Sends the request. |