-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 support for brotli encoding #463
Conversation
@indexzero @BigBlueHat anything I can help out with to get this merged? I tested it locally by following these steps:
I think this PR is working as intended 👍 |
Heya, don't mean to be a bother but just wanted to ping about this again since there's a project I'm working on that's waiting for this support. Keep up the good work! |
@BigBlueHat do you have the ability to merge? And if so, what do you think? |
@thornjad sorry I hadn't responded earlier other than the labeling. Since this bumps the underlying We've also got a bit of a tangle with #464, but since you're the author of both, maybe you can help queue those in your preferred order? 😃 Regardless, I do want to get this merged--and ideally soon. We should also get some tests written for the |
Hey, that's alright. Tests are a good idea. I did put some in For the MIME libraries, tests would probably be good here as well, but I've never used custom types in real life, so I'm not sure what to look for. As for #464, either PR can go first and the other can be updated to match. This PR is a more meaningful change, so maybe this one should go first. |
@thornjad wrt to mime stuff, I may be remembering this all wrong. It looks like #35 is a pending request which has an old PR #152 which may be obviated by PR #472 exposes the raw JSON mime config to the command line, but doesn't handle the In short, this is probably not a blocker. 😄 But it is something there's long standing desire for, so maybe we tackle that once much of this is in place. With some basic tests for this code, I'd be say it's ready to go (it reads well anyway). Thanks for the help @thornjad! |
Sorry for being ridiculously slow, I've been atypically busy. I've added tests for compression. I'll update #464 after this merges! |
Hi! I have been following this issue for a while. Sorry for asking this but.. May I know when will this be merged/released? |
@wentjun sorry for the delay! I am working on a giant merge train so this should be merged soon! |
...coding Add support for brotli encoding
Awesome, happy to see this go in! |
As requested in #445, this adds support for serving brotli-encoded files by passing
--brotli
or-b
to http-server. This necessitates bumping up the minimumecstatic
dependency version to3.3.0
, but this shouldn't have any breaking changes.