Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Response

import type { Response } from "https://googleapis.deno.dev/v1/servicecontrol:v2.ts";

This message defines attributes for a typical network response. It generally models semantics of an HTTP response.

interface Response {
backendLatency?: number;
code?: bigint;
headers?: {
[key: string]: string;
}
;
size?: bigint;
time?: Date;
}

§Properties

§
backendLatency?: number
[src]

The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.

§
code?: bigint
[src]

The HTTP response status code, such as 200 and 404.

§
headers?: {
[key: string]: string;
}
[src]

The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.

§
size?: bigint
[src]

The HTTP response size in bytes. If unknown, it must be -1.

§
time?: Date
[src]

The timestamp when the destination service sends the last byte of the response.