Preparing search index...
The search index is not available
IM SDK Web API 文档
IM SDK Web API 文档
platform/types
RequestConfig
Interface RequestConfig
平台请求适配器的请求配置。
interface
RequestConfig
{
url
:
string
;
method
?:
HttpMethod
;
headers
?:
Record
<
string
,
string
>
;
body
?:
string
|
Uint8Array
<
ArrayBufferLike
>
|
Record
<
string
,
unknown
>
;
responseType
?:
"json"
|
"text"
|
"arraybuffer"
;
timeoutMs
?:
number
;
signal
?:
AbortSignal
;
}
Index
Properties
url
method?
headers?
body?
response
Type?
timeout
Ms?
signal?
Properties
Readonly
url
url
:
string
请求 URL。
Optional
Readonly
method
method
?:
HttpMethod
HTTP 方法,默认由调用方决定。
Optional
Readonly
headers
headers
?:
Record
<
string
,
string
>
请求头。
Optional
Readonly
body
body
?:
string
|
Uint8Array
<
ArrayBufferLike
>
|
Record
<
string
,
unknown
>
请求体。
Optional
Readonly
response
Type
responseType
?:
"json"
|
"text"
|
"arraybuffer"
期望的响应数据类型。
Optional
Readonly
timeout
Ms
timeoutMs
?:
number
请求超时时间,单位毫秒。
Optional
Readonly
signal
signal
?:
AbortSignal
请求取消信号。
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
url
method
headers
body
response
Type
timeout
Ms
signal
IM SDK Web API 文档
Loading...
平台请求适配器的请求配置。