Summary
Public Methods |
Request
|
send()
Sends an HTTP request based on the current builder configuration.
|
Request
|
sendRequest(String requestData, RequestCallback callback)
Sends an HTTP request based on the current builder configuration with the
specified data and callback.
|
Public Constructors
Public Methods
public
Request
send
()
Sends an HTTP request based on the current builder configuration. If no
request headers have been set, the header "Content-Type" will be used with
a value of "text/plain; charset=utf-8". You must call
setRequestData(String)
and setCallback(RequestCallback)
before calling this method.
Returns
- a
Request
object that can be used to track the request
Sends an HTTP request based on the current builder configuration with the
specified data and callback. If no request headers have been set, the
header "Content-Type" will be used with a value of "text/plain;
charset=utf-8". This method does not cache requestData
or
callback
.
Parameters
requestData
| the data to send as part of the request |
callback
| the response handler to be notified when the request fails
or completes |
Returns
- a
Request
object that can be used to track the request