-
Notifications
You must be signed in to change notification settings - Fork 108
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
Feature: support gRPC compressed payloads #135
Feature: support gRPC compressed payloads #135
Conversation
Neat! Thanks for looking into this @emaheuxPEREN. I do think it would be good to do this based on the actual header though, rather than content sniffing. Where possible it would be good to follow the grpc spec closely - this is a neat solution, but it's not what most clients will be doing, and matching normal behaviour will provide nicer UX & avoid various problems down the line. Should be very doable though - we could add an optional It would also be good to add some tests for this. There's protobuf tests in |
3e73b1d
to
0849ad0
Compare
…prove Protobuf/gRPC tests coverage
0849ad0
to
3d713b3
Compare
Done :) I also added:
|
@pimterry would it be possible to have a list of contributors somewhere in the repo (beyond GitHub-embedded contributors, like a standard CONTRIBUTORS file) please before I can sign the CLA? |
Thanks for the other work updating this, looks good at first pass, I'll do a proper review before the end of the week 👍
I'd really rather not, to be honest. Mostly because it duplicates the git history, and will inevitably get out of sync pretty quickly (or will require an extra layer of tooling in CI to avoid that, and block PRs until it's updated). And it would be odd to add to just one repo - which implies a bunch of work to do the same for the other 50 or so HTTP Toolkit component repos. The history of contributions is always available via Git itself though: In the near term I'd like to create a proper By the way, in case you're not aware - HTTP Toolkit Pro is totally free for all contributors. Is that something you'd be interested in? Just let me know the email you'd like to use for your account if so (either here or send it to me at tim @ httptoolkit.com). |
Ok, fair enough :)
Indeed, I'd really appreciate this, thank you! |
Reviewed, this all looks great! Thanks for all your work on this. Just merged now, that'll be live in 20 minutes or so (your HTTP Toolkit will update in the background within 30 seconds then the next time it runs, and then this will be active the following time).
Ok, great! I've just enabled that for your git email ( |
Thank you, I appreciate. I'll continue contributing if I spot anything interesting to integrate :) |
Add support for viewing compressed gRPC payloads.
In theory we should check consistency of actual content encoding with 'grpc-encoding' header, but we do not have access to it in this context and thus I inferred compression scheme based on magic bytes.