HTTP Client

HTTP Proxy

If the application needs to use an HTTP proxy to access external resources, it can be configured as follows.

In this example, the HTTP proxy URL is http://localhost:8888. Connections to hosts listed under nonProxyHosts are made directly and not through the HTTP proxy. In this example, this would be localhost, any IP address starting with 192.168. and any subdomain of example.org.


httpClient:
  proxy:
    host: localhost
    port: 8888
    scheme : http
    nonProxyHosts:
      - localhost
      - '192.168.*'
      - '*.example.org'