Search
Preparing search index...
The search index is not available
@quenk/jhr
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"agent/transport/xhr"
XHRTransport
Class XHRTransport<Raw, Res>
XHRTransport uses the browsers XMLHTTPRequest object as a transport engine.
Type parameters
Raw
Res
Hierarchy
XHRTransport
Implements
Transport
<
Raw
,
Res
>
Index
Constructors
constructor
Properties
parser
response
Type
transform
Methods
send
Constructors
constructor
new XHRTransport
(
responseType
?:
XMLHttpRequestResponseType
, transform
:
Transform
<
Raw
,
RequestBody
>
, parser
:
Parser
<
ResponseBody
,
Res
>
)
:
XHRTransport
Parameters
Default value
responseType:
XMLHttpRequestResponseType
= ""
transform:
Transform
<
Raw
,
RequestBody
>
parser:
Parser
<
ResponseBody
,
Res
>
Returns
XHRTransport
Properties
parser
parser
:
Parser
<
ResponseBody
,
Res
>
response
Type
response
Type
:
XMLHttpRequestResponseType
transform
transform
:
Transform
<
Raw
,
RequestBody
>
Methods
send
send
(
ctx
:
Context
<
Raw
>
)
:
Future
<
Response
<
Res
>
>
Parameters
ctx:
Context
<
Raw
>
Returns
Future
<
Response
<
Res
>
>
Globals
"agent/transport/xhr"
XHRTransport
constructor
parser
response
Type
transform
send
Request
Body
Response
Body
Generated using
TypeDoc
XHRTransport uses the browsers XMLHTTPRequest object as a transport engine.