Type Parameters

  • T

Hierarchy (view full)

Constructors

Properties

data: T
headers: Headers
httpStatusCode: number

Methods

  • Use a heuristic to get a body of unknown data structure. Return as string if possible, otherwise as binary.

    Returns Promise<undefined | string | Buffer>

  • 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 Headers