Search
Preparing search index...
The search index is not available
tasklike-promise-library
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
"http/browser"
XhrResponse
Class XhrResponse
Hierarchy
XhrResponse
Implements
IXhrResponse
Index
Constructors
constructor
Properties
is
Successful
Status
Code
status
Code
status
Text
xhr
Accessors
body
Methods
ensure
Successful
Status
Code
get
Header
Value
get
Header
Values
Constructors
constructor
new
Xhr
Response
(
xhr
:
XMLHttpRequest
)
:
XhrResponse
Parameters
xhr:
XMLHttpRequest
Returns
XhrResponse
Properties
is
Successful
Status
Code
is
Successful
Status
Code
:
boolean
= this.xhr.status >= 200 && this.xhr.status <= 299
status
Code
status
Code
:
number
= this.xhr.status
status
Text
status
Text
:
string
= this.xhr.statusText
xhr
xhr
:
XMLHttpRequest
Accessors
body
get
body
(
)
:
any
Returns
any
Methods
ensure
Successful
Status
Code
ensure
Successful
Status
Code
(
)
:
void
Returns
void
get
Header
Value
get
Header
Value
(
headerName
:
string
)
:
string
|
null
Parameters
headerName:
string
Returns
string
|
null
get
Header
Values
get
Header
Values
(
headerName
:
string
)
:
string
[]
|
null
Parameters
headerName:
string
Returns
string
[]
|
null
Globals
"abort
Signal"
"common"
"delayed
Callbacks"
"http/browser"
"http/common"
"http/index"
"http/node"
"index"
"primitives/cancellation"
"primitives/disposable"
"primitives/errors"
"primitives/event
Emitter"
"primitives/index"
"primitives/promise
Like
Resolution
Source"
"primitives/promise
Resolution
Source"
Xhr
Response
constructor
is
Successful
Status
Code
status
Code
status
Text
xhr
body
ensure
Successful
Status
Code
get
Header
Value
get
Header
Values
IXhr
Response
send
Request
Generated using
TypeDoc