This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
requestor/lib/handler_interfaces.ts
2020-04-08 11:57:30 +02:00

39 lines
819 B
TypeScript

interface AllHandler {
async handle_all_request(req: Request, res: Response): void;
}
interface DeleteHandler {
async handle_delete_request(req: Request, res: Response): void;
}
interface GetHandler {
async handle_get_request(req: Request, res: Response): void;
}
interface HeadHandler {
async handle_head_request(req: Request, res: Response): void;
}
interface PostHandler {
async handle_post_request(req: Request, res: Response): void;
}
interface PutHandler {
async handle_put_request(req: Request, res: Response): void;
}
interface TraceHandler {
async handle_trace_request(req: Request, res: Response): void;
}
/* eslint-disable @typescript-eslint/naming-convention */
export default {
AllHandler,
DeleteHandler,
GetHandler,
HeadHandler,
PostHandler,
PutHandler,
TraceHandler
};