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

39 lines
819 B
TypeScript
Raw Normal View History

2020-04-08 11:57:30 +02:00
interface AllHandler {
async handle_all_request(req: Request, res: Response): void;
2020-04-03 15:00:49 +02:00
}
2020-04-08 11:57:30 +02:00
interface DeleteHandler {
async handle_delete_request(req: Request, res: Response): void;
2020-04-03 15:00:49 +02:00
}
2020-04-08 11:57:30 +02:00
interface GetHandler {
async handle_get_request(req: Request, res: Response): void;
2020-04-03 15:00:49 +02:00
}
2020-04-08 11:57:30 +02:00
interface HeadHandler {
async handle_head_request(req: Request, res: Response): void;
2020-04-03 15:00:49 +02:00
}
2020-04-08 11:57:30 +02:00
interface PostHandler {
async handle_post_request(req: Request, res: Response): void;
2020-04-03 15:00:49 +02:00
}
2020-04-08 11:57:30 +02:00
interface PutHandler {
async handle_put_request(req: Request, res: Response): void;
2020-04-03 15:00:49 +02:00
}
2020-04-08 11:57:30 +02:00
interface TraceHandler {
async handle_trace_request(req: Request, res: Response): void;
2020-04-03 15:00:49 +02:00
}
2020-04-03 18:50:08 +02:00
2020-04-08 11:57:30 +02:00
/* eslint-disable @typescript-eslint/naming-convention */
export default {
AllHandler,
DeleteHandler,
GetHandler,
HeadHandler,
PostHandler,
PutHandler,
TraceHandler
};