Class ApiRequest

AWS Lambda HTTP request event. Used for testing, enabling manually passing requests to a ApiLambdaApp instance.

Hierarchy

  • ApiRequest

Constructors

Properties

body: string

HTTP request event body, potentially Base64 encoded.

headers: object = {}

HTTP request headers as a map.

httpMethod: string

HTTP method ('GET', 'POST', 'PUT' etc.)

isBase64Encoded: boolean

Is the body property Base64 encoded?

path: string

Request URL path. Excludes protocol, host and port.

queryStringParameters: object = {}

HTTP request query string parameters as a map.

Generated using TypeDoc