httpClient
Description
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.
Can be used in
spring:beans, api, bean, if, interceptor, internalProxy, proxy, registration, request, response, serviceProxy, soapProxy, stompProxy, swaggerProxy, transport and wsStompReassembler
Syntax
1 2 3 | < httpClient failOverOn5XX = "[boolean]" keepAliveTimeout = "[long]" /> |
Sample
1 2 3 4 5 6 7 8 9 | < beans > < transport coreThreadPoolSize = "20" > < ruleMatching /> < dispatching /> < userFeature /> < httpClient /> </ transport > </ beans > |
Attributes
Name | Required | Default | Description | Example |
---|---|---|---|---|
adjustHostHeader | false | true | Whether the HTTP "Host" header should be set before the response will be forwarded to its destination. | |
failOverOn5XX | false | false | Whether to retry again (possibly the next node, when load balancing is active) after a HTTP status code 500<= x <600 was received. |
Child Elements
Position | Cardinality | Description | Element |
---|---|---|---|
1 | 0..1 | httpClientConfig |