Options: {
    statusCode: number;
    headers: Record<string, string>;
    body: Buffer;
    url: string;
}

Type declaration

  • ReadonlystatusCode: number

    The HTTP response status code.

  • Readonlyheaders: Record<string, string>

    The HTTP headers object.

    Keys are in lowercase.

  • Readonlybody: Buffer

    The response body.

    The contents will be streamable but is also exposed directly as response.body.

  • Readonlyurl: string

    The request URL string.