@univerjs/network v0.4.2 • Docs
Class: HTTPResponse<T>
Wraps success response info.
Type Parameters
Type Parameter |
---|
T |
Implements
IHTTPEvent
Constructors
new HTTPResponse()
new HTTPResponse<T>(__namedParameters): HTTPResponse<T>
Parameters
Parameter | Type |
---|---|
__namedParameters | object |
__namedParameters.body | T |
__namedParameters.headers | HTTPHeaders |
__namedParameters.status | number |
__namedParameters.statusText | string |
Returns
HTTPResponse
<T
>
Defined in
packages/network/src/services/http/response.ts:42 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
body | readonly | T | undefined | packages/network/src/services/http/response.ts:37 (opens in a new tab) |
headers | readonly | HTTPHeaders | undefined | packages/network/src/services/http/response.ts:38 (opens in a new tab) |
status | readonly | number | undefined | packages/network/src/services/http/response.ts:39 (opens in a new tab) |
statusText | readonly | string | undefined | packages/network/src/services/http/response.ts:40 (opens in a new tab) |
type | readonly | Response | HTTPEventType.Response | packages/network/src/services/http/response.ts:35 (opens in a new tab) |