@univerjs/network v0.5.0-beta.1 • Docs
Class: HTTPRequest
Constructors
new HTTPRequest()
new HTTPRequest(
method,
url,
requestParams?): HTTPRequest
Parameters
Parameter | Type |
---|---|
method | HTTPRequestMethod |
url | string |
requestParams ? | IHTTPRequestParams |
Returns
Defined in
submodules/univer/packages/network/src/services/http/request.ts:50
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
method | readonly | HTTPRequestMethod | submodules/univer/packages/network/src/services/http/request.ts:51 |
requestParams? | readonly | IHTTPRequestParams | submodules/univer/packages/network/src/services/http/request.ts:53 |
uid | readonly | number | submodules/univer/packages/network/src/services/http/request.ts:48 |
url | readonly | string | submodules/univer/packages/network/src/services/http/request.ts:52 |
Accessors
headers
Get Signature
get headers(): HTTPHeaders
Returns
Defined in
submodules/univer/packages/network/src/services/http/request.ts:44
responseType
Get Signature
get responseType(): HTTPResponseType
Returns
Defined in
submodules/univer/packages/network/src/services/http/request.ts:46
withCredentials
Get Signature
get withCredentials(): boolean
Returns
boolean
Defined in
submodules/univer/packages/network/src/services/http/request.ts:45
Methods
getBody()
getBody(): null | string
Returns
null
| string
Defined in
submodules/univer/packages/network/src/services/http/request.ts:65
getHeadersInit()
getHeadersInit(): HeadersInit
Returns
HeadersInit
Defined in
submodules/univer/packages/network/src/services/http/request.ts:75
getUrlWithParams()
getUrlWithParams(): string
Returns
string
Defined in
submodules/univer/packages/network/src/services/http/request.ts:56