# new HttpProxy (config: Object)
Arguments:
config
: Objectendpoint
: stringProxy endpoint name
targetURL
: stringA URL of target server we reverse requests to
compressionEnable
: booleanUse gzip compression of request body
sendTimeout
=30000: NumberSend timeout in ms.
receiveTimeout
=30000: NumberReceive timeout in ms.
connectTimeout
=30000: NumberConnect timeout in ms.
nonAuthorizedURLs
: Array.<RegExp>Array of regular expression for URL what not require a authentication
authorizedURLs
: Array.<RegExp>Array of regular expression for URL what require a authentication. If set this parameter will be ignored parameter nonAuthorizedURLs
authorizedRole
: string | Array.<string>Authorize only user with role(s)
Methods
# processRequest (req: THTTPRequest, resp: THTTPResponse) instance
Handle a proxy request
Arguments:
req
: THTTPRequestresp
: THTTPResponse