HttpMiddleware: (
    req: Request,
    ctx: CommandContext,
    next: (req: Request) => Promise<Response>,
) => Promise<Response>

Type declaration

    • (
          req: Request,
          ctx: CommandContext,
          next: (req: Request) => Promise<Response>,
      ): Promise<Response>
    • Parameters

      • req: Request
      • ctx: CommandContext
      • next: (req: Request) => Promise<Response>

      Returns Promise<Response>