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
net/http: using DumpResponse without requests #29658
Comments
Nope, those aren't preserved. You'll need to do something lower-level with the net package directly if you need that. |
So is there anyway to get the HTTP message total length when using ReadResponse? |
There are various definitions for "total length". Which do you mean? |
Sum of all TCP payloads that represent the current HTTP message |
Nope, sorry. That isn't tracked. You might be able to recreate a close value, but optional whitespace and such is discarded. |
Hi,
I'm trying to build a HTTP sniffer.
I used http.ReadResponse as following
but some parts of the response are missing such as the delimiters
I would like to dump the raw response, is it possible to use httputil.DumpResponse?
Samuel
The text was updated successfully, but these errors were encountered: