httpClient

Version

The httpClient sends the request of an exchange to a Web Server using the HTTP protocol. Usually it will be globally used inside the transport. However, it is also possible to use it inside a proxy to give the proxy an individual configuration for its outgoing HTTP connection that is different from the global configuration in the transport.

Syntax

httpClient:
'$ref': <string>
failOverOn5XX: <boolean>
httpClientConfig: {}
httpClient:
  '$ref': <string>
  failOverOn5XX: <boolean>
  httpClientConfig: {}

Sample

<beans>
<transport coreThreadPoolSize="20">
<ruleMatching />
<dispatching />
<userFeature />
<httpClient />
</transport>
</beans>
<beans>
  <transport coreThreadPoolSize="20">
	<ruleMatching />
	<dispatching />
	<userFeature />
	<httpClient />
  </transport>
</beans>

Attributes

NameRequiredDefaultDescriptionExamples
$reffalse-Reference a component defined under components.-
failOverOn5XXfalsefalseWhether to retry again (possibly the next node, when load balancing is active) after a HTTP status code 500<=x<600 was received.-

Child Structure

ElementCardinalityDescription
httpClientConfig0..1Configuration 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 . Most of its sub-elements are optional.

Can be used in