@athenna/http
Version:
The Athenna Http server. Built on top of fastify.
16 lines (15 loc) • 469 B
TypeScript
/**
* @athenna/http
*
* (c) João Lenon <lenon@athenna.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import type { InterceptContext } from '#src/types/contexts/InterceptContext';
export interface InterceptorContract {
/**
* Intercept the request at the end, before returning the response.
*/
intercept(ctx: InterceptContext): unknown | Promise<unknown>;
}