@univerjs/network v0.5.0-beta.1 • 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
submodules/univer/packages/network/src/services/http/response.ts:42
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
body | readonly | T | undefined | submodules/univer/packages/network/src/services/http/response.ts:37 |
headers | readonly | HTTPHeaders | undefined | submodules/univer/packages/network/src/services/http/response.ts:38 |
status | readonly | number | undefined | submodules/univer/packages/network/src/services/http/response.ts:39 |
statusText | readonly | string | undefined | submodules/univer/packages/network/src/services/http/response.ts:40 |
type | readonly | Response | HTTPEventType.Response | submodules/univer/packages/network/src/services/http/response.ts:35 |