Content of an HTTP request.

interface RequestPayload {
    body?: string | Buffer;
    headers: IncomingHttpHeaders;
    method: string;
    url: string;
}

Properties

Properties

body?: string | Buffer

HTTP request body

headers: IncomingHttpHeaders

HTTP headers

method: string

HTTP method

url: string

HTTP url