Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ResponseContext

Index

Constructors

Properties

headers: {}

Type declaration

  • [key: string]: string
httpStatusCode: number

Methods

  • getBodyAsAny(): Promise<undefined | string | Buffer>
  • Use a heuristic to get a body of unknown data structure. Return as string if possible, otherwise as binary.

    Returns Promise<undefined | string | Buffer>

  • getParsedHeader(headerName: string): {}
  • Parse header value in the form value; param1="value1"

    E.g. for Content-Type or Content-Disposition Parameter names are converted to lower case The first parameter is returned with the key ""

    Parameters

    • headerName: string

    Returns {}

    • [parameter: string]: string

Generated using TypeDoc