Sample
<httpClientConfig maxRetries="5" adjustHostHeader="true">
<connection timeout="10000"/>
<proxy host="proxy.example.com" port="3128"/>
<authentication type="basic" user="user" password="pass"/>
<ssl keystoreLocation="classpath:client.jks" keystorePassword="secret"/>
</httpClientConfig>
<httpClientConfig maxRetries="5" adjustHostHeader="true">
<connection timeout="10000"/>
<proxy host="proxy.example.com" port="3128"/>
<authentication type="basic" user="user" password="pass"/>
<ssl keystoreLocation="classpath:client.jks" keystorePassword="secret"/>
</httpClientConfig>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| maxRetries | false | 5 | Determines how often Membrane tries to send a message to a target before it gives up and returns an error message to the client. All tries to all servers count together. For example if you have 2 targets, and a RoundRobin strategy, then the number 5 means it tries, in this order: one, two, one, two, one. NOTE: the word "retries" is used incorrectly throughout this project. The current meaning is "tries". The first attempt, which is semantically not a "re"-try, counts as one already. | - |
| useExperimentalHttp2 | false | - | - | - |
Child Elements
| Element | Description | Cardinality |
|---|---|---|
| authentication | 0..1 | |
| connection | 0..1 | |
| proxy | 0..1 | |
| ssl | Configures inbound or outbound SSL connections. | 0..1 |