Interface RequestMatcher

interface RequestMatcher {
    type:
        | "port"
        | "header"
        | "method"
        | "host"
        | "query"
        | "protocol"
        | "hostname"
        | "cookie"
        | "callback"
        | "wildcard"
        | "simple-path"
        | "regex-path"
        | "regex-url"
        | "exact-query-string"
        | "form-data"
        | "multipart-form-data"
        | "raw-body"
        | "raw-body-regexp"
        | "raw-body-includes"
        | "json-body"
        | "json-body-matching";
    dispose(): void;
    explain(): string;
    matches(request: OngoingRequest): MaybePromise<boolean>;
}

Hierarchy (view full)

Implemented by

Properties

Methods

Properties

type:
    | "port"
    | "header"
    | "method"
    | "host"
    | "query"
    | "protocol"
    | "hostname"
    | "cookie"
    | "callback"
    | "wildcard"
    | "simple-path"
    | "regex-path"
    | "regex-url"
    | "exact-query-string"
    | "form-data"
    | "multipart-form-data"
    | "raw-body"
    | "raw-body-regexp"
    | "raw-body-includes"
    | "json-body"
    | "json-body-matching"

Methods