API Reference
@univerjs
@univerjs/network
classes
Httpresponse

@univerjs/network v0.4.2Docs


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

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

Properties

PropertyModifierTypeDefault valueDefined in
bodyreadonlyTundefinedpackages/network/src/services/http/response.ts:37 (opens in a new tab)
headersreadonlyHTTPHeadersundefinedpackages/network/src/services/http/response.ts:38 (opens in a new tab)
statusreadonlynumberundefinedpackages/network/src/services/http/response.ts:39 (opens in a new tab)
statusTextreadonlystringundefinedpackages/network/src/services/http/response.ts:40 (opens in a new tab)
typereadonlyResponseHTTPEventType.Responsepackages/network/src/services/http/response.ts:35 (opens in a new tab)

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