Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • HTTPResponse

Index

Methods

Methods

handle

  • handle(error?: Error): APIGatewayProxyResult
  • Handles response error.

    Parameters

    • Optional error: Error

      The error to handle.

    Returns APIGatewayProxyResult

    The handled HTTP response object.

render

  • render(view: string, values?: ViewLocalArg): APIGatewayProxyResult
  • Renders a view and sends it to the client.

    Parameters

    • view: string

      The view name to render.

    • Optional values: ViewLocalArg

      The values object to merge into the view locals.

    Returns APIGatewayProxyResult

    The HTTP response object.

send

  • send(response: APIGatewayProxyResult): APIGatewayProxyResult
  • Sends a response to the request.

    Parameters

    • response: APIGatewayProxyResult

      The response object to send.

    Returns APIGatewayProxyResult

    The appropriate response object.

Legend

  • Property
  • Method

Generated using TypeDoc