# new HttpProxy (config:  Object)

Arguments:
  • config: Object
    • endpoint:  string

      Proxy endpoint name

    • targetURL:  string

      A URL of target server we reverse requests to

    • compressionEnable:  boolean

      Use gzip compression of request body

    • sendTimeout=30000:  Number

      Send timeout in ms.

    • receiveTimeout=30000:  Number

      Receive timeout in ms.

    • connectTimeout=30000:  Number

      Connect 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: