Interface MethodSettings

interface MethodSettings {
    body?: any;
    delay?: number;
    exact?: true;
    handler?: RequestHandler;
    headers?: OutgoingHttpHeaders;
    proxy?: string;
    proxyOptions?: RequestOptions;
    status?: number;
}

Hierarchy (View Summary)

Properties

body?: any

response payload

delay?: number

Method-level delay (in milliseconds)

exact?: true

If true, will not parse route as regex

handler?: RequestHandler

HTTP request handler function

headers?: OutgoingHttpHeaders

headers to add (Content-Type is added automatically)

proxy?: string

If set, will proxy all requests to the target

proxyOptions?: RequestOptions

Options to pass through proxy

status?: number

status code to return (defaults to 200)