-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting the list of all the headers and their content #655
Comments
nponsard
changed the title
Getting the list of all the headers and its content
Getting the list of all the headers and their content
Sep 6, 2023
I got same problem. But I prefer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm working on an API code generator.
I want all the generated functions to return an access to all the headers and the parsed body.
To return all the headers I currently loop over
response.headers_names()
and then read theresponse.header(&name)
:I find it very inefficient, the most efficient way from my point of view would be to add an access to the
headers
in theResponse
struct.Do you think this would cause problems ? I can try to open a PR adding this function.
Edit: I found the "http-interop" feature, this could give me the access I want but I don't like the fact that
unwrap()
is called oninto_string()
.The text was updated successfully, but these errors were encountered: