Class: HTTPResponse<T>
Defined in: submodules/univer/packages/network/src/services/http/response.ts:35
Wraps success response info.
Type Parameters
Type Parameter |
---|
T |
Implements
IHTTPEvent
Constructors
new HTTPResponse()
new HTTPResponse<T>(__namedParameters): HTTPResponse<T>
Defined in: submodules/univer/packages/network/src/services/http/response.ts:43
Parameters
Parameter | Type |
---|---|
__namedParameters | { body : T ; headers : HTTPHeaders ; status : number ; statusText : string ; } |
__namedParameters.body | T |
__namedParameters.headers | HTTPHeaders |
__namedParameters.status | number |
__namedParameters.statusText | string |
Returns
HTTPResponse
<T
>
Properties
Property | Modifier | Type | Default value | Defined in |
---|---|---|---|---|
body | readonly | T | undefined | submodules/univer/packages/network/src/services/http/response.ts:38 |
headers | readonly | HTTPHeaders | undefined | submodules/univer/packages/network/src/services/http/response.ts:39 |
status | readonly | number | undefined | submodules/univer/packages/network/src/services/http/response.ts:40 |
statusText | readonly | string | undefined | submodules/univer/packages/network/src/services/http/response.ts:41 |
type | readonly | Response | HTTPEventType.Response | submodules/univer/packages/network/src/services/http/response.ts:36 |