-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add Gzip decoding automatically to Response #3
Comments
Would using https://github.com/alexcrichton/flate2-rs work here? |
Yes, that would probably be a good crate to use. Internally, we'd adjust the Response struct to be an enum, with variants On Tue, Nov 15, 2016, 10:07 PM Jason Schein notifications@github.com
|
Cool, I'll give this one a go over the weekend. |
Its been a while since I've written any Rust and I'm pretty novice when it comes low(er) level stuff, so I want to thoroughly test this to actually make sure it works before submitting a PR, but if you want to see my progress and provide any feedback, here is my local fork/branch. |
@echochamber feel free to submit a PR, it is actually far easier to comment and review it when it is a PR. PRs don't have to be perfect from the beginning :) Regarding echochamber@fb399a2: I realize I mispoke, I didn't meant to change the pub struct Response {
inner: Decoder
}
enum Decoder {
Plaintext(::hyper::client::Response),
Gzip(GzipDecoder<::hyper::client::Response>),
} Not I haven't checked that that is exactly how you type a Separately, it seems that we should be checking the |
Opened a PR here #25 Thanks for the feedback and suggestions thus far. I'll try to have my PR reflect your suggestions this evening. |
Closed by #61 |
No description provided.
The text was updated successfully, but these errors were encountered: