# new HttpProxy (configObject)

Arguments:
  • config: Object
    • endpointstring

      Proxy endpoint name

    • targetURLstring

      A URL of target server we reverse requests to

    • compressionEnableboolean

      Use gzip compression of request body

    • sendTimeout=30000Number

      Send timeout in ms.

    • receiveTimeout=30000Number

      Receive timeout in ms.

    • connectTimeout=30000Number

      Connect timeout in ms.

    • nonAuthorizedURLsArray.<RegExp>

      Array of regular expression for URL what not require a authentication

    • authorizedURLsArray.<RegExp>

      Array of regular expression for URL what require a authentication. If set this parameter will be ignored parameter nonAuthorizedURLs

    • authorizedRolestring | Array.<string>

      Authorize only user with role(s)

Methods

# processRequest (reqTHTTPRequest, respTHTTPResponse) instance

Handle a proxy request

Arguments: