AIFlow API Documentation
Preparing search index...
HttpClient
Class HttpClient
Index
Constructors
constructor
Methods
request
Binary
request
Head
request
Json
request
Stream
request
Text
Constructors
constructor
new
HttpClient
()
:
HttpClient
Returns
HttpClient
Methods
request
Binary
requestBinary
(
url
:
string
,
method
:
string
,
headers
:
Record
<
string
,
string
>
,
body
?:
string
,
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
Parameters
url
:
string
method
:
string
headers
:
Record
<
string
,
string
>
Optional
body
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
>
request
Head
requestHead
(
url
:
string
,
headers
:
Record
<
string
,
string
>
)
:
Promise
<
Response
>
Parameters
url
:
string
headers
:
Record
<
string
,
string
>
Returns
Promise
<
Response
>
request
Json
requestJson
<
T
>
(
url
:
string
,
method
:
string
,
headers
:
Record
<
string
,
string
>
,
body
?:
string
,
)
:
Promise
<
T
>
Type Parameters
T
Parameters
url
:
string
method
:
string
headers
:
Record
<
string
,
string
>
Optional
body
:
string
Returns
Promise
<
T
>
request
Stream
requestStream
(
url
:
string
,
method
:
string
,
headers
:
Record
<
string
,
string
>
,
body
?:
string
,
)
:
Promise
<
ReadableStream
<
any
>
>
Parameters
url
:
string
method
:
string
headers
:
Record
<
string
,
string
>
Optional
body
:
string
Returns
Promise
<
ReadableStream
<
any
>
>
request
Text
requestText
(
url
:
string
,
method
:
string
,
headers
:
Record
<
string
,
string
>
,
body
?:
string
,
)
:
Promise
<
string
>
Parameters
url
:
string
method
:
string
headers
:
Record
<
string
,
string
>
Optional
body
:
string
Returns
Promise
<
string
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
request
Binary
request
Head
request
Json
request
Stream
request
Text
AIFlow API Documentation
Loading...