featherbit UI
    Preparing search index...

    Interface MatchRule

    Request-matching criteria for a route; omitted fields match anything.

    interface MatchRule {
        headers?: Record<string, string>;
        host?: string;
        methods?: string[];
        path?: string;
    }
    Index
    headers?: Record<string, string>

    Header name/value pairs that must all be present on the request.

    host?: string

    Host header value to match.

    methods?: string[]

    HTTP methods accepted by the route (e.g. ["GET", "POST"]).

    path?: string

    Path pattern to match (supports trailing wildcards, e.g. /api/*).