@cldn/web-ts - v0.4.0
    Preparing search index...

    Interface Route<A>

    A route that can handle HTTP requests.

    interface Route<A> {
        handle(req: Request<A>): Promise<Response<A>>;
        match(req: Request<A>): boolean;
    }

    Type Parameters

    • A

    Implemented by

    Index

    Methods

    Methods