Constructor
# new Response(xhr)
Parameters:
Name | Type | Description |
---|---|---|
xhr |
XMLHttpRequest
|
The request to be wrapped. |
Members
Methods
# parseNumericHeader(name) → {number}
Returns the response header value with the given `name` as a number. When the value is not a number the return
value will be 0.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
The name of the header field |
number