Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@MkFair
Copy link

@MkFair MkFair commented Jan 2, 2025

When requesting some data, I need to understand what type of content, for example, the server returns, this modification will allow me to access the headers and solve my problem.

@plumgames
Copy link
Contributor

I also needed this so I merged this into my branch and added support for reading the headers from web + fixed the build errors: https://github.com/plumgames/rbfx/blob/dev/Source/Urho3D/HTTP/HttpRequest.cpp#L159

@eugeneko
Copy link
Member

@plumgames Do you think it's ok to have map? Multiple HTTP headers with the same name are allowed.

@plumgames
Copy link
Contributor

Forgot about that...would still like to keep the API for getting a single value from a header since that's the common case. An overload could be added that would return the full list of values and change the underlying collection to a map<str,vecStr>

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.