API Reference
@univerjs
@univerjs/network
classes
Httprequest

@univerjs/network v0.4.2Docs


Class: HTTPRequest

Constructors

new HTTPRequest()

new HTTPRequest(
   method, 
   url, 
   requestParams?): HTTPRequest

Parameters

ParameterType
methodHTTPRequestMethod
urlstring
requestParams?IHTTPRequestParams

Returns

HTTPRequest

Defined in

packages/network/src/services/http/request.ts:50 (opens in a new tab)

Properties

PropertyModifierTypeDefined in
methodreadonlyHTTPRequestMethodpackages/network/src/services/http/request.ts:51 (opens in a new tab)
requestParams?readonlyIHTTPRequestParamspackages/network/src/services/http/request.ts:53 (opens in a new tab)
uidreadonlynumberpackages/network/src/services/http/request.ts:48 (opens in a new tab)
urlreadonlystringpackages/network/src/services/http/request.ts:52 (opens in a new tab)

Accessors

headers

get headers(): HTTPHeaders

Returns

HTTPHeaders

Defined in

packages/network/src/services/http/request.ts:44 (opens in a new tab)


responseType

get responseType(): HTTPResponseType

Returns

HTTPResponseType

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)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.