Interface LambdaRequestOptions

Hierarchy

  • LambdaRequestOptions

Properties

body?: string | Buffer
headers?: RequestHeaders
httpVersion?: string
invokeAction?: InvokeAction
invokeSource?: InvokeSource
method?: string
rawBody?: Buffer
rawUrl: string

Represents the unmodified URL path as received from downstream.

url: {
    host?: string;
    pathname: string;
    port?: string;
    protocol?: string;
    search?: string;
}

Either pass URL, or mock only certain values.

Implemented this way as we use only pathname + query as request.url, dont need hostname, protocol in a lot of cases -> such as testing, and traditional URL can't be built without it.

Type declaration

  • Optional host?: string
  • pathname: string
  • Optional port?: string
  • Optional protocol?: string
  • Optional search?: string

Generated using TypeDoc