Skip to content
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

Gzip Compression #13

Open
cgorshing opened this issue Aug 15, 2014 · 1 comment
Open

Gzip Compression #13

cgorshing opened this issue Aug 15, 2014 · 1 comment

Comments

@cgorshing
Copy link
Contributor

I need some way to [more] easily have the server respond with gzip compression. The HttpResponderBuilder does not allow for anything along these lines.

I would like to have this built in (by providing the body, it will compress it), or by having a byte[] method I can call for the already compressed data. There is already a String method that just returns a ByteArrayResource. I know I can use the withBody closure, but this closure seems like a one off with the other fluent method available.

I think it makes sense to have the ability to have something along the lines of .withGzipBody(...)

Thoughts?

@cgorshing
Copy link
Contributor Author

I thought I had submitted a pull request for this, but I haven't. This is in my branch and I'll get one submitted soon. https://github.com/cgorshing/confluex-mock-http/commit/2447a44d28441c9a967a02f913443dfa84907bed

Update:
I did submit a pull request #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant