Skip to content

feat(header): add HeaderMap::retain - #892

Open
cgzones wants to merge 1 commit into
hyperium:masterfrom
cgzones:header-map-retain
Open

cgzones wants to merge 1 commit into
hyperium:masterfrom
cgzones:header-map-retain

Conversation

@cgzones

@cgzones cgzones commented Nov 29, 2026

Copy link
Copy Markdown

Add support to filter headers and keep only those matching a custom predicate. Currently this requires collecting the names to drop and then calling remove for each.
This mirrors HashMap::retain.

Closes #541
Closes #632

Add support to filter headers and keep only those matching a custom
predicate. Currently this requires collecting the names to drop and then
calling `remove` for each.
This mirrors `HashMap::retain`.

Closes hyperium#541
Closes hyperium#632

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A feature request: implement retain on HeaderMap Retain function for header map

1 participant