httpClientConfig

Can be used in:

httpClient, acme, registration, router and bean

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>

Attributes

NameRequiredDefaultDescriptionExamples
useExperimentalHttp2 false - - -
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.
-

Child Elements

ElementsDescriptionCardinality
connection 0..1
proxy 0..1
authentication 0..1

Other optional Child Elements

ssl