Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Session: Delete one ore more select headers #1172

Open
simue opened this issue Feb 3, 2025 · 0 comments · May be fixed by #1173
Open

Session: Delete one ore more select headers #1172

simue opened this issue Feb 3, 2025 · 0 comments · May be fixed by #1173
Assignees
Milestone

Comments

@simue
Copy link

simue commented Feb 3, 2025

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
2 participants