import { HTTPResponse } from "https://deno.land/x/dynablox_opencloud@v0.2.2/src/rest/HTTPResponse.ts";
A Dynablox HTTP Response.
Constructors
Properties
readonly
_request: InternalHTTPRequestOriginal request object.
readonly
_response: ResponseOriginal response object.
readonly
body: ExpectResponse body.
readonly
headers: HeadersResponse headers.
readonly
status: HTTPResponseStatusStatus information.
Static Methods
init<Expect>(request: InternalHTTPRequest, response: Response): Promise<HTTPResponse<Expect>>
Parse the response and request then return the parsed body.
parseBody<Expect>(request: InternalHTTPRequest, response: Response): Promise<Expect>
Parse the response and request then return the parsed body.