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, }: ServerlessRequestProps);
Parameters
Parameter | Type | Description |
---|---|---|
{ method, url, headers, body, remoteAddress, } | ServerlessRequestProps |
(property) body
Signature:
body?: Buffer | Uint8Array;
(property) ip
Signature:
ip?: string;