Skip to content

Session: Delete one ore more select headers #1172

@simue

Description

@simue

Is your feature request related to a problem?

I'd like there to be the possibility to delete one or more headers when using sessions.
Currently, we can overwrite all headers with SetHeader, or update select ones with UpdateHeader. What's missing is to delete one or more headers from header_.

Possible Solution

I'd like to either implement a function bool Session::DeleteHeader(const std::string& headerKey), or a getter for the headers: Header& GetHeaders(), with which the user can delete (and inspect) the existing headers that may have been set with previous requests.

What's your take on this - does it make sense, or is this the wrong approach?

Alternatives

No response

Additional Context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions