Represents an HTTP message with headers and an optional static or streaming body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream;

Hierarchy (view full)

Implements

Constructors

Properties

body?: any
fragment?: string
headers: HeaderBag
hostname: string
method: string
password?: string
path: string
port?: number
protocol: string
username?: string

Methods