Skip to content

Added default response compression detectors (array and regex)#7

Merged
christoph-kluge merged 2 commits intomasterfrom
identify-compressible-response
Oct 24, 2017
Merged

Added default response compression detectors (array and regex)#7
christoph-kluge merged 2 commits intomasterfrom
identify-compressible-response

Conversation

@christoph-kluge
Copy link
Copy Markdown
Owner

@christoph-kluge christoph-kluge commented Oct 10, 2017

While I started to tackle #4 (original: reactphp/http#219 (comment)) I came up with the following solution to add a MimeDetectorInterface and two Default Detectors ArrayDetector and RegexDetector.

I think in a follow-up PR it should be easy to add a MimeDbDetector-Wrapper which will fetch the mime-db/load the mime-db and pass the compressible mimes to the ArrayDetector..

ping @jsor, @WyriHaximus :)

@christoph-kluge christoph-kluge merged commit 5abae54 into master Oct 24, 2017
@christoph-kluge christoph-kluge deleted the identify-compressible-response branch October 24, 2017 09:44
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

Successfully merging this pull request may close these issues.

1 participant