Skip to content

Compression support in Faraday 2 #1390

Answered by iMacTia
bodrovis asked this question in Help
Discussion options

You must be logged in to vote

Hi @bodrovis and thanks for reaching out!
This is indeed interesting because Net::HTTP officially supports compression out of the box.
I'm honestly unsure as to why this isn't the case for you, but I can only imagine this is due to the lack of some necessary header (that the server should return?) 🤔.

If you'd like to keep supporting all adapters, then the gzip could be gemified into its own gem. If you're interested, the process is actually quite easy thanks to the faraday-middleware-template repository. The main reason this hasn't been done it is because we didn't consider the middleware much useful anymore, but if someone would like to take the lead in making a gem out of it compatible …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bodrovis
Comment options

Answer selected by bodrovis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants