Class UrlRequest
- Requires:
- Class
- Defined in:
- UrlRequest.js
UrlRequest
Constructor
UrlRequest(url)
Methods
Method | |
---|---|
getData()
returns data or parameters that will be sent to service
|
|
returns headers value pair object
|
|
returns method of communicating with a service
|
|
getUrl()
returns url of a service endpoint
|
|
setData(data)
sets the data or parameters that will be sent to service
|
|
setHeaders(headerName, headerValue, headers)
sets request headers
could be Object with key/value pais or
two String Objects first with a header name, second with the header value
|
|
setMethod(method)
sets method of communicating with a service
|
|
setUrl(url)
sets url of a service endpoint
|
Method Details
getData()
:{Object}
returns data or parameters that will be sent to service
- Returns:
- {Object}
getHeaders()
:{Object}
returns headers value pair object
- Returns:
- {Object}
getMethod()
:{String}
returns method of communicating with a service
- Returns:
- {String}
getUrl()
:{String}
returns url of a service endpoint
- Returns:
- {String}
setData(data)
:{Object}
sets the data or parameters that will be sent to service
Parameters (optional) | ||
---|---|---|
data | {Object} |
- Returns:
- {Object}
sets request headers
could be Object with key/value pais or
two String Objects first with a header name, second with the header value
Parameters (optional) | ||
---|---|---|
headerName | {String} | |
headerValue | {String} | |
headers | {Object} |
- Returns:
- {UrlRequest}
sets method of communicating with a service
Parameters (optional) | ||
---|---|---|
method | {String} |
- Returns:
- {UrlRequest}
sets url of a service endpoint
Parameters (optional) | ||
---|---|---|
url | {String} |
- Returns:
- {UrlRequest}
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Aug 17 2011 15:33:34 GMT+0200 (CEST)