Accept: application/json, application/xml
Accept: text/plain
The Merge Header Filter merges multiple header lines with the same name into a single header line with multiple comma-separated values.
This filter can process both requests and responses.
Name: merge-header
Default Configuration: merge-header.cfg.xml
Released: v7.1.0.0
Bundle: repose-filter-bundle
This configuration will merge the Accept and X-Roles headers on the request, and the Cache-Control header on the response.
For example, if a request is made with the header lines:
Accept: application/json, application/xml
Accept: text/plainThis filter will merge those header lines into the header line:
Accept: application/json, application/xml, text/plain<merge-header xmlns='http://docs.openrepose.org/repose/merge-header/v1.0'>
    <request> (1)
        <header>accept</header> (2)
        <header>x-roles</header> (3)
    </request>
    <response> (4)
        <header>cache-control</header> (5)
    </response>
</merge-header>| 1 | A container for all of the request headers that should be merged by this filter. | 
| 2 | A header to be merged by this filter.
In this case, the standard HTTP Acceptheader will be merged on requests. | 
| 3 | A header to be merged by this filter.
In this case, the Repose-specific X-Rolesheader will be merged on requests. | 
| 4 | A container for all of the response headers that should be merged by this filter. | 
| 5 | A header to be merged by this filter.
In this case, the standard HTTP Cache-Controlheader will be merged on responses. |