goog.net.XhrManager.Request |
url
: string
Uri to make the request too.
|
xhrEventCallback
: Function
Callback attached to the events of the
XhrIo object of the request.
|
opt_method
: string=
Send method, default: GET.
|
opt_content
: ArrayBuffer | ArrayBufferView | Blob | Document | FormData | string=
Post data.
|
opt_headers
: Object | goog.structs.Map=
Map of headers to add to the
request.
|
opt_callback
: Function=
Callback function for when request is
complete. NOTE: Only 1 callback supported across all events.
|
opt_maxRetries
: number=
The maximum number of times the request
should be retried (Default: 1).
|
opt_responseType
: goog.net.XhrIo.ResponseType=
The response type of
this request; defaults to goog.net.XhrIo.ResponseType.DEFAULT.
|
Gets the aborted status.
Returns: boolean
True if request was aborted, otherwise False.
|
code » | ||
Gets the number of attempts so far.
Returns: number
The number of attempts so far.
|
code » | ||
Gets the callback for when the request is complete.
|
code » | ||
Gets the completed status.
Returns: boolean
The completed status.
|
code » | ||
Gets the post data.
|
code » | ||
Gets the map of headers.
|
code » | ||
Gets the maximum number of times the request should be retried.
Returns: number
The maximum number of times the request should be retried.
|
code » | ||
Gets the send method.
Returns: string
The send method.
|
code » | ||
![]()
Gets the response type that will be set on this request's XhrIo when it's
available.
Returns: !goog.net.XhrIo.ResponseType
The response type to be set
when an XhrIo becomes available to this request.
|
code » | ||
Gets the uri.
Returns: string
The uri to make the request to.
|
code » | ||
Gets the callback attached to the events of the XhrIo object.
Returns: Function
The callback attached to the events of the
XhrIo object.
|
code » | ||
Returns whether the request has reached the maximum number of retries.
Returns: boolean
Whether the request has reached the maximum number of
retries.
|
code » | ||
![]()
Increases the number of attempts so far.
|
code » | ||
![]()
Sets the aborted status.
Arguments:
|
code » | ||
![]()
Sets the completed status.
Arguments:
|
code » |
![]()
Whether the request has been aborted.
|
Code » | |
![]()
The number of attempts so far.
|
Code » | |
![]()
Callback function called when request is complete.
|
Code » | |
![]()
Whether the request has been completed.
|
Code » | |
![]()
Post data.
|
Code » | |
![]()
Map of headers
|
Code » | |
![]()
The maximum number of times the request should be retried.
|
Code » | |
![]()
Send method.
|
Code » | |
![]()
A response type to set on this.xhrIo when it's populated.
|
Code » | |
![]()
Uri to make the request too.
|
Code » | |
![]()
Callback attached to the events of the XhrIo object.
|
Code » | |
The XhrIo instance handling this request. Set in handleAvailableXhr.
|
Code » |