Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MethodSettings

Hierarchy

Index

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)

Generated using TypeDoc