跳至主要內容

Class: config

muzzik小于 1 分钟

index / network / http_ / config

Class: config

network.http_.config

配置信息

Table of contents

Constructors

Properties

Constructors

constructor

new config(init_?)

Parameters

NameType
init_?Partial<config>

Defined in

assets/@framework/network/mk_http.ts:133open in new window

Properties

timeout_n

timeout_n: number = 5000

超时时间(ms)

Defined in

assets/@framework/network/mk_http.ts:138open in new window


return_type

Optional return_type: XMLHttpRequestResponseType

返回数据类型

Defined in

assets/@framework/network/mk_http.ts:140open in new window


codec

Optional codec: codec_base

编解码器

Defined in

assets/@framework/network/mk_http.ts:142open in new window


body

Optional body: string | Document | Blob | BufferSource | FormData | URLSearchParams

内容

Defined in

assets/@framework/network/mk_http.ts:144open in new window


Optional header: Record<string, string>

标头

Defined in

assets/@framework/network/mk_http.ts:146open in new window


open_callback_f

Optional open_callback_f: (http: XMLHttpRequest) => void

Type declaration

▸ (http): void

open 后回调

Parameters
NameType
httpXMLHttpRequest
Returns

void

Remarks

可在函数内注册回调,设置请求数据

Defined in

assets/@framework/network/mk_http.ts:152open in new window

📣 觉得很赞?分享给你的朋友吧!