4. Transports and Clients

proxy

Version

Configuration for an outbound HTTP proxy used by the HTTP client.

Defines the proxy endpoint, optional authentication, and TLS settings. When configured, all outgoing requests are routed through the proxy.

This element is typically used as a child of httpClientConfig.

Example Configuration

configuration:
httpClientConfig:
proxy:
host: localhost
port: 3128
authentication: true
username: alice
password: secret
configuration:
   httpClientConfig:
     proxy:
       host: localhost
       port: 3128
       authentication: true
       username: alice
       password: secret

Syntax

proxy:
'$ref': <string>
authentication: <boolean>
host: <string>
password: <string>
port: <number>
ssl: {}
username: <string>
proxy:
  '$ref': <string>
  authentication: <boolean>
  host: <string>
  password: <string>
  port: <number>
  ssl: {}
  username: <string>

Attributes

NameRequiredDefaultDescriptionExamples
$reffalse-Reference a component defined under components.-
authenticationfalsefalseWhether to send a Basic Authentication header with proxy requests. If set to true, <username> and <password> must be provided.-
hostfalse-The hostname or IP address of the proxy server. Required for proxy usage.proxy.example.com
passwordfalse(not set)Password for authenticating with the proxy server. Only used when authentication="true".secret
portfalse0TCP port on which the proxy server is listening.3128
usernamefalse(not set)Username for authenticating with the proxy server. Only used when authentication="true".user

Child Structure

ElementCardinalityDescription
ssl0..1Configures inbound or outbound SSL connections.

Can be used in