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 and deflate content encoding decoding #50

Closed
wants to merge 2 commits into from

Conversation

WyriHaximus
Copy link
Member

Using clue/zlib-react this PR adds gzip and deflate content encoding decoding and paves the way chunked encoding decoding and the likes of it.

Fixes #30

@@ -238,11 +238,15 @@ public function setResponseFactory($factory)
$this->responseFactory = $factory;
}

public function getResponseFactory()
public function getResponseFactory($psrResponse = null)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not very fond of solving it this way, any suggestions to do it better then this are very welcome

@WyriHaximus
Copy link
Member Author

Ping @cboden @clue

@ovr
Copy link

ovr commented Jan 22, 2016

Ping @cboden @clue

@clue
Copy link
Member

clue commented Mar 8, 2016

I'd love to see this feature in, but I'm unsure about its current state tbh.

What do you think about https://github.com/clue/php-zlib-react#inconsistencies?

Also, we should evaluate how the returned body contents plus related headers are presented to consumers of this lib and whether we should consider this a BC break.

I'd love to hear some more thoughts on this before diving into a deeper code review 👍

'User-Agent' => 'React/alpha',
'Host' => $this->getHost().$port,
'User-Agent' => 'React/alpha',
'Accept-Encoding' => 'gzip',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be gzip and deflate

@clue
Copy link
Member

clue commented Jan 18, 2018

As much as I'd love to get this feature in, I'm having to close this for now as it hasn't received any input in a while and it's unlikely this will get traction any time soon.

The feature request is still open in #37 and we may look into this again in the future 👍 If you feel this was closed prematurely or want to pick this up again, please let us know and we can reopen this.

Thank you for your effort!

@clue clue closed this Jan 18, 2018
@clue clue deleted the zlib-features branch February 3, 2019 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants