Interface PathConfigWithOptions

Configuration for a path.

interface PathConfigWithOptions {
    all?: MethodConfig;
    connect?: MethodConfig;
    delay?: number;
    delete?: MethodConfig;
    exact?: true;
    get?: MethodConfig;
    head?: MethodConfig;
    options?: MethodConfig;
    patch?: MethodConfig;
    post?: MethodConfig;
    proxy?: string;
    proxyOptions?: RequestOptions;
    put?: MethodConfig;
    trace?: MethodConfig;
    urlRegex?: RegExp;
}

Hierarchy (View Summary)

Properties

connect?: MethodConfig
delay?: number

Method-level delay (in milliseconds)

delete?: MethodConfig
exact?: true

If true, will not parse route as regex

options?: MethodConfig
patch?: MethodConfig
proxy?: string

If set, will proxy all requests to the target

proxyOptions?: RequestOptions

Options to pass through proxy

trace?: MethodConfig
urlRegex?: RegExp