rjweb-server
Version:
Easy and Robust Way to create a Web Server with Many Easy-to-use Features in NodeJS
9 lines (8 loc) • 490 B
TypeScript
import RequestContext from "../types/internal/classes/RequestContext";
import { HttpContext } from "../types/implementation/contexts/http";
import { Server } from "../index";
import { UsableMiddleware } from "../classes/Middleware";
/**
* Handler for HTTP Requests
* @since 9.0.0
*/ export default function handle(context: RequestContext, req: HttpContext, server: Server<any, any, any>, middlewares: UsableMiddleware[], customContext: Record<string, any>): Promise<boolean | undefined>;