Class: http
小于 1 分钟
Class: http
network.http
http 模块
Remarks
post/get 支持
支持任意类型的返回数据解析
支持自定义编解码器
Hierarchy
↳
http
Table of contents
Methods
Methods
open
▸ open(type_s_
, url_s_
, config_?
): Promise
<void
>
通用方法
Parameters
Name | Type |
---|---|
type_s_ | "GET" | "POST" |
url_s_ | string |
config_? | Partial <config > |
Returns
Promise
<void
>
Defined in
assets/@framework/network/mk_http.ts:19
get
▸ get(url_s_
, config_
): Promise
<void
>
GET方法
Parameters
Name | Type |
---|---|
url_s_ | string |
config_ | Partial <config > |
Returns
Promise
<void
>
Defined in
assets/@framework/network/mk_http.ts:120
post
▸ post(url_s_
, config_
): Promise
<void
>
POST方法
Parameters
Name | Type |
---|---|
url_s_ | string |
config_ | Partial <config > |
Returns
Promise
<void
>