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