Search code examples
spring-cloud-dataflow

Spring Cloud Data Flow - Http --> HttpClient (pass headers)


Assume a Spring Cloud Dataflow (SCDF) stream like

http|httpclient|custom-app|log

Given I invoke the stream from postman with headers: Content-Type and Custom header (e.g 'fileName')

What would be the approach to pass all the headers from 'http' app to 'custom-app' in above scenario in SCDF.

Issue fix: to configure mapped-request-headers and headers-expression as shown here


Solution

  • I think you need to use mapped-request-headers option in the http application as defined here.