• Preparing search index...
  • The search index is not available
zibri
  • zibri
  • routing/request.context
  • runWithRequest

Function runWithRequest

  • runWithRequest<T>(req: HttpRequest, fn: () => T): T

    Runs the given function with the request saved in async local storage.

    Type Parameters

    • T

    Parameters

    • req: HttpRequest

      The request.

    • fn: () => T

      The function to run.

    Returns T

    The result of the function.

    • Defined in src/routing/request.context.ts:23

Settings

Member Visibility
zibri
  • Loading...

Generated using TypeDoc