Type alias HttpHandler<T, R>

HttpHandler<T, R>: ((context, body) => Promise<R>)

Type Parameters

  • T

  • R

Type declaration

    • (context, body): Promise<R>
    • A type definition for an HTTP handler.

      Parameters

      Returns Promise<R>

Generated using TypeDoc