Skip to content

Extend HttpServerResponseMutator with replace and set if absent variants #11048

Open
@ddark008

Description

@ddark008

Is your feature request related to a problem? Please describe.

Current HttpServerResponseMutator provides only appending header values. In some circumstances, this can lead to duplicate header values. For example, the instrumentation of the spring-cloud-gateway proxy adds additional headers to all packets that are passed through, in addition to existing headers.

Describe the solution you'd like

Extend HttpServerResponseMutator with new methods:

  • replace existing headers
  • set header if absent

Describe alternatives you've considered

No response

Additional context

I can provide some PR to support these features

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions