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

Set gzip header - but don't Gzip data #459

Open
abradle opened this issue Feb 12, 2016 · 3 comments
Open

Set gzip header - but don't Gzip data #459

abradle opened this issue Feb 12, 2016 · 3 comments

Comments

@abradle
Copy link

abradle commented Feb 12, 2016

I would like to pre-gzip my content myself - but still set the content-encoding header to gzip. Currently if I do so spark will re-gzip the data.

Is it possible to set the content-encoding header to gzip - without Spark gzip compressing the response itself.

Best wishes,

Anthony

@IRus
Copy link

IRus commented Feb 19, 2016

Duplicate of #316, @abradle what do you think?

@int02h
Copy link

int02h commented Mar 21, 2018

I've met the same problem. I've asked on stackoverflow but there are no answers.

@int02h
Copy link

int02h commented Mar 21, 2018

I was trying to make pull request but I'm not completely sure how it should look like from architecture point of view. I thought in two ways:

  1. A method gzipBody(byte[]) in spark.Response. As an analogue for body(String);
  2. Special class such as GzipBody. Its instances can be returned from Route.handle().

lepe pushed a commit to Intellisrc/spark that referenced this issue Jul 27, 2022
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

3 participants