Preparing search index...
The search index is not available
KoAJAX
KoAJAX
HTTPClient
Class HTTPClient<T>
Type Parameters
T
extends
Context
Hierarchy (
view full
)
Stack
<
T
>
HTTPClient
Index
Constructors
constructor
Properties
baseURI
default
Ware
length
options
Methods
delete
download
execute
get
head
mount
patch
post
put
request
use
Constructors
constructor
new HTTPClient
<
T
>
(
__namedParameters
?
)
:
HTTPClient
<
T
>
Type Parameters
T
extends
Context
Parameters
__namedParameters
:
ClientOptions
= {}
Returns
HTTPClient
<
T
>
Properties
baseURI
baseURI
:
string
default
Ware
default
Ware
:
Middleware
<
T
>
= ...
length
length
:
number
= 0
options
options
:
RequestOptions
Methods
delete
delete
<
B
>
(
path
,
body
?
,
headers
?
)
:
Promise
<
Response
<
B
>
>
Type Parameters
B
Parameters
path
:
string
|
URL
Optional
body
:
any
Optional
headers
:
HeadersInit
Returns
Promise
<
Response
<
B
>
>
download
download
(
path
,
__namedParameters
?
)
:
AsyncGenerator
<
TransferProgress
,
any
,
unknown
>
Parameters
path
:
string
|
URL
__namedParameters
:
DownloadOptions
= {}
Returns
AsyncGenerator
<
TransferProgress
,
any
,
unknown
>
execute
execute
(
context
?
,
depth
?
)
:
any
Parameters
Optional
context
:
T
depth
:
number
= 0
Returns
any
get
get
<
B
>
(
path
,
headers
?
)
:
Promise
<
Response
<
B
>
>
Type Parameters
B
Parameters
path
:
string
|
URL
Optional
headers
:
HeadersInit
Returns
Promise
<
Response
<
B
>
>
head
head
(
path
,
headers
?
)
:
Promise
<
Record
<
string
,
string
|
object
>
>
Parameters
path
:
string
|
URL
Optional
headers
:
HeadersInit
Returns
Promise
<
Record
<
string
,
string
|
object
>
>
mount
mount
(
condition
,
stack
)
:
HTTPClient
<
T
>
Parameters
condition
:
(
(
context
)
=>
boolean
)
(
context
)
:
boolean
Parameters
context
:
T
Returns
boolean
stack
:
Stack
<
T
>
Returns
HTTPClient
<
T
>
patch
patch
<
B
>
(
path
,
body
?
,
headers
?
)
:
Promise
<
Response
<
B
>
>
Type Parameters
B
Parameters
path
:
string
|
URL
Optional
body
:
any
Optional
headers
:
HeadersInit
Returns
Promise
<
Response
<
B
>
>
post
post
<
B
>
(
path
,
body
?
,
headers
?
)
:
Promise
<
Response
<
B
>
>
Type Parameters
B
Parameters
path
:
string
|
URL
Optional
body
:
any
Optional
headers
:
HeadersInit
Returns
Promise
<
Response
<
B
>
>
put
put
<
B
>
(
path
,
body
?
,
headers
?
)
:
Promise
<
Response
<
B
>
>
Type Parameters
B
Parameters
path
:
string
|
URL
Optional
body
:
any
Optional
headers
:
HeadersInit
Returns
Promise
<
Response
<
B
>
>
request
request
<
B
>
(
data
)
:
Promise
<
Response
<
B
>
>
Type Parameters
B
Parameters
data
:
T
[
"request"
]
Returns
Promise
<
Response
<
B
>
>
use
use
(
...
middlewares
)
:
HTTPClient
<
T
>
Parameters
Rest
...
middlewares
:
Middleware
<
T
>
[]
Returns
HTTPClient
<
T
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
constructor
baseURI
default
Ware
length
options
delete
download
execute
get
head
mount
patch
post
put
request
use
KoAJAX
Loading...
Generated using
TypeDoc