Skip to content

Headers should offer method to remove and return header #891

Closed
@untitaker

Description

@untitaker

If I take a Headers by value (moving it into my function), I want to avoid copying them. For that reason it would be useful if either Headers::remove would return the popped item (as HashMap::remove does), or if a new method was added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-headersArea: headers.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions