Skip to main content

ServerlessRequest

@h4ad/serverless-adapter > ServerlessRequest

(class) ServerlessRequest​

The class that represents an created by the library to represent an actual request to the framework.

Signature:

export declare class ServerlessRequest extends IncomingMessage

Extends: IncomingMessage

(constructor)​

Constructs a new instance of the ServerlessRequest class

Signature:

constructor(\{ method, url, headers, body, remoteAddress, setIpProperty, }: ServerlessRequestProps);

Parameters​

Parameter

Type

Description

{ method, url, headers, body, remoteAddress, setIpProperty, }

ServerlessRequestProps

(property) body​

Signature:

body?: Buffer | Uint8Array;

(property) ip​

Signature:

ip?: string;