Advanced Alerting APIs
|
Provides an API to perform HTTP POST and GET operations. More...
Public Member Functions | |
HttpResponse | get (object request) |
HttpResponse | post (object request) |
HttpResponse | put (object request) |
HttpResponse | delete (object request) |
Provides an API to perform HTTP POST and GET operations.
HttpResponse delete | ( | object | request | ) |
Perform an HTTP DELETE request
request | A Javascript object which must contain the url and may contain:
|
The username and password attributes are strings, if supplied, the request will perform Basic Authentication. The headers attribute is another Javascript object with key value pairs for each header.
HttpResponse get | ( | object | request | ) |
Perform an HTTP GET request
request | A Javascript object which must contain the url and may contain:
|
The username and password attributes are strings, if supplied, the request will perform Basic Authentication. The headers attribute is another Javascript object with key value pairs for each header.
HttpResponse post | ( | object | request | ) |
Perform an HTTP POST request
request | A Javascript object which must contain the attributes url and data, and may contain:
|
The data attribute is a Javascript object, which is encoded and sent in the body of the POST request. The username and password attributes are strings, if supplied, the request will perform Basic Authentication. The headers attribute is a Javascript object which contains the name value pairs for each header. The contentType attribute is a string which contains the content type. The supported content types are:
If contentType is not supplied then it is assumed to be application/x-www-form-urlencoded.
HttpResponse put | ( | object | request | ) |
Perform an HTTP PUT request
request | A Javascript object which must contain the attributes url and data, and may contain:
|
The data attribute is a Javascript object, which is encoded and sent in the body of the POST request. The username and password attributes are strings, if supplied, the request will perform Basic Authentication. The headers attribute is a Javascript object which contains the name value pairs for each header. The contentType attribute is a string which contains the content type. The supported content types are:
If contentType is not supplied then it is assumed to be application/x-www-form-urlencoded.