Я хотел бы установить заголовок User-Agent при использовании процессора: http-client
Я вижу, что есть опция mappedRequestHeaders, но как использовать для установки User-Agent: например, Mozilla
Либо я что-то упускаю, либо у spring-xd отсутствует процессор: header-enricher. Это сделает то, что я ищу в обычном контексте Spring Integration:
<int:chain id="mychain" input-channel="http-request-data">
<int:header-enricher>
<int:header name="User-Agent" value="curl/7.0.48"/>
</int:header-enricher>
<int-http:outbound-gateway url="${url}" http-method="GET" expected-response type="java.lang.String"/>
<int-file:outbound-channel-adapter directory="${output-folder}" filename-generator-expression="'${filename}'" />
</int:chain>