Options
All
  • Public
  • Public/Protected
  • All
Menu

An event context for an incoming HTTP request.

Hierarchy

  • RequestEvent

Index

Accessors

requestMeta

  • Returns metadata of the request that triggered this invocation.

    Returns RequestMeta

userContext

  • Get the Identity information for the user from the request.

    Returns null | UserContext

Methods

replaceResponse

  • Takes over the HTTP transaction and sends the given response to the client instead.

    Parameters

    • produceResponse: Response | ((args: ReplaceResponseArgs) => Response | Promise<Response>)

      Either:

      • A readily available HTTP response
      • A callback returning an HTTP response or a promise resolving to an HTTP response.

      If the callback is given, its given access to the incoming HTTP request (body).

    Returns void

Generated using TypeDoc