@univerjs/network v0.5.0-beta.1Docs


Class: HTTPRequest

Constructors

new HTTPRequest()

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

Parameters

ParameterType
methodHTTPRequestMethod
urlstring
requestParams?IHTTPRequestParams

Returns

HTTPRequest

Defined in

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

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
Returns

HTTPHeaders

Defined in

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


responseType

Get Signature

get responseType(): HTTPResponseType
Returns

HTTPResponseType

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