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

30 lines
796 B
TypeScript

export interface all_handler {
async handle_all_request(req: Request, res: Response): void
}
export interface delete_handler {
async handle_delete_request(req: Request, res: Response): void
}
export interface get_handler {
async handle_get_request(req: Request, res: Response): void
}
export interface head_handler {
async handle_head_request(req: Request, res: Response): void
}
export interface post_handler {
async handle_post_request(req: Request, res: Response): void
}
export interface put_handler {
async handle_put_request(req: Request, res: Response): void
}
export interface trace_handler {
async handle_trace_request(req: Request, res: Response): void
}
export default {all_handler,delete_handler,get_handler,head_handler,post_handler,put_handler,
trace_handler}