Configuration container for Membrane's HTTP client. Allows defining proxy, connection, authentication, TLS, and retry behavior. Can be used as a reusable bean and referenced via <spring:bean>. Most of its sub-elements are optional.
Whether to automatically rewrite the Host header to match the target address. This is useful when routing requests to internal systems where the Host header must match the backend.
-
maxRetries
false
2
Total number of connection attempts before giving up. This includes the first attempt, so 5 means 1 try + 4 retries. Used for failover and load balancing logic.
3
useExperimentalHttp2
false
false
Enables experimental support for HTTP/2. When true, HTTP/2 connections are attempted when possible.
Configuration for basic HTTP authentication. This element can be used to configure credentials for outbound requests requiring HTTP Basic Auth. Typically used within . XML Example: YAML (experimental): authentication: username: user password: secret
Configuration for low-level socket behavior of Membrane's HTTP client. This includes timeouts and local address binding for outbound connections. Typically used as a child of . XML Example: YAML (experimental):
Configuration for an outbound HTTP proxy. Defines the address, optional authentication credentials, and TLS configuration for connecting to a proxy. Can be used as a child element in to route client connections through a proxy server. XML Example: YAML (experimental): proxy: host: proxy.example.com port: 3128 authentication: true username: user password: secret ssl: keystoreLocation: classpath:proxy-client.jks keystorePassword: changeit