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


Class: HTTPResponse<T>

Wraps success response info.

Type Parameters

Type Parameter
T

Implements

  • IHTTPEvent

Constructors

new HTTPResponse()

new HTTPResponse<T>(__namedParameters): HTTPResponse<T>

Parameters

ParameterType
__namedParametersobject
__namedParameters.bodyT
__namedParameters.headersHTTPHeaders
__namedParameters.statusnumber
__namedParameters.statusTextstring

Returns

HTTPResponse<T>

Defined in

submodules/univer/packages/network/src/services/http/response.ts:42

Properties

PropertyModifierTypeDefault valueDefined in
bodyreadonlyTundefinedsubmodules/univer/packages/network/src/services/http/response.ts:37
headersreadonlyHTTPHeadersundefinedsubmodules/univer/packages/network/src/services/http/response.ts:38
statusreadonlynumberundefinedsubmodules/univer/packages/network/src/services/http/response.ts:39
statusTextreadonlystringundefinedsubmodules/univer/packages/network/src/services/http/response.ts:40
typereadonlyResponseHTTPEventType.Responsesubmodules/univer/packages/network/src/services/http/response.ts:35