No way to examine headers from response

Bug #1398944 reported by Robert Schroll
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
net-cpp
Confirmed
High
Thomas Voß

Bug Description

As best I can tell, there is no way to examine the value of a header of a response. From the source, it appears to be possible to find if a specific header exists and set a header's value, but not query its value. In my use case, for example, I need to examine the Content-Type of the response.

Revision history for this message
Thomas Voß (thomas-voss) wrote :

We usually rely on enumerate(...) to bulk-process all headers in one go. However, happy to add an operator[] overload to query individual values.

Changed in net-cpp:
importance: Undecided → High
status: New → Confirmed
assignee: nobody → Thomas Voß (thomas-voss)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.