envoyproxy / envoyproxy/envoy

feature request: `skip_if_present` for request/response headers to add

Open
#9,525 5 comments 1 reaction 0 assignees View on GitHub
area/http help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
428

Description

*Title*: `skip_if_present` for request/response headers to add

*Description*:
When using `request/response_headers_to_add`, the only options are either replace the header or append to it. Sometimes it may be preferable to simply ignore if the header is already set. This would add a boolean `skip_if_present` option to `core.HeaderValueOption` that defaults to `false`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.