Skip to main content

AdapterRequest

@h4ad/serverless-adapter > AdapterRequest

(interface) AdapterRequest

The request interface used to bridge any event source to the framework.

Signature:

export interface AdapterRequest 

(property) body

The body as buffer to use to create the request to the framework

Signature:

body?: Buffer;

(property) headers

The headers to use to create the request to the framework

Signature:

headers: SingleValueHeaders;

(property) host

Warning: This API is now obsolete.

It is no longer used in the library and will be removed in the next major release.

The address of the event source (used in Lambda @ edge)

Signature:

host?: string;

(property) hostname

Warning: This API is now obsolete.

It is no longer used in the library and will be removed in the next major release.

The address of the event source (used in Lambda @ edge)

Signature:

hostname?: string;

(property) method

The HTTP Method to use to create the request to the framework

Signature:

method: string;

(property) path

The path to use to create the request to the framework

Signature:

path: string;

(property) remoteAddress

The remote address (client ip) to use to create the request to the framework

Signature:

remoteAddress?: string;