Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20056

camel-core - SetHeaders EIP to set multiple headers in a single EIP

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.3.0
    • camel-core, eip
    • None
    • Unknown

    Description

      When you want to set many headers, then a route can become cluttered with many setHeader EIPs.

      This makes observability / tooling / monitoring harder as they track each indivudually.
      For example to set 10 headers.

      If we have an EIP that allows to set multiple headers at once

      In Java the DSL can accept a Map

      setHeaders(Map.of("xxx", "yyyy")

      But we should allow to set via camel languages also

      setHeaders("foo", simple("xxx"), "bar", jq("/xxx"), ...)

      And in XML and YAML DSL then it should be possible to set via language as well.

      Attachments

        Issue Links

          Activity

            People

              klease78 Karen Lease
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: