@univerjs/network v0.5.4


Class: HTTPRequest

Defined in: submodules/univer/packages/network/src/services/http/request.ts:43

Constructors

new HTTPRequest()

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

Defined in: submodules/univer/packages/network/src/services/http/request.ts:50

Parameters

ParameterType
methodHTTPRequestMethod
urlstring
requestParams?IHTTPRequestParams

Returns

HTTPRequest

Properties

PropertyModifierTypeDefined in
methodreadonlyHTTPRequestMethodsubmodules/univer/packages/network/src/services/http/request.ts:51
requestParams?readonlyIHTTPRequestParamssubmodules/univer/packages/network/src/services/http/request.ts:53
uidreadonlynumbersubmodules/univer/packages/network/src/services/http/request.ts:48
urlreadonlystringsubmodules/univer/packages/network/src/services/http/request.ts:52

Accessors

headers

Get Signature

get headers(): HTTPHeaders

Defined in: submodules/univer/packages/network/src/services/http/request.ts:44

Returns

HTTPHeaders


responseType

Get Signature

get responseType(): HTTPResponseType

Defined in: submodules/univer/packages/network/src/services/http/request.ts:46

Returns

HTTPResponseType


withCredentials

Get Signature

get withCredentials(): boolean

Defined in: submodules/univer/packages/network/src/services/http/request.ts:45

Returns

boolean

Methods

getBody()

getBody(): null | string

Defined in: submodules/univer/packages/network/src/services/http/request.ts:65

Returns

null | string


getHeadersInit()

getHeadersInit(): HeadersInit

Defined in: submodules/univer/packages/network/src/services/http/request.ts:75

Returns

HeadersInit


getUrlWithParams()

getUrlWithParams(): string

Defined in: submodules/univer/packages/network/src/services/http/request.ts:56

Returns

string