Optional bodyOptional bodyOptional bodyOptional bodyOptional bodyOptional changeBoolean Setting req headers host.
Optional headerAccess Control Allow options.
{}
{
header: {
'Access-Control-Allow-Methods': 'POST, GET, OPTIONS, PUT, DELETE',
}
}
Optional httpOptional listeners?: HttpProxyListenersOptional options?: ServerOptionsOptional pathOptional priorityOptional proxyProxy settings, Turn a path string such as /user/:name into a regular expression. path-to-regexp
{}
Optional watchOptional withBoolean the proxy regular expression support full url path.
if the proxy regular expression like /test?a=1&b=1 can be matched
Generated using TypeDoc
bodyParser settings.
Example
will parsed
Content-Type='text/plain' and Content-Type='text/html'withbodyParser.textDefault
{}