Interface RequestHandler

interface RequestHandler {
    type:
        | "file"
        | "stream"
        | "timeout"
        | "callback"
        | "simple"
        | "passthrough"
        | "close-connection"
        | "reset-connection"
        | "json-rpc-response";
    dispose(): void;
    explain(): string;
    handle(request: OngoingRequest, response: OngoingResponse, options: RequestHandlerOptions): Promise<void>;
}

Hierarchy (view full)

Properties

Methods

Properties

type:
    | "file"
    | "stream"
    | "timeout"
    | "callback"
    | "simple"
    | "passthrough"
    | "close-connection"
    | "reset-connection"
    | "json-rpc-response"

Methods