implement mod_negotiation algorithm #1
Comments
@lsmith77 any news about this ? |
this is being worked on in https://github.com/winmillwill/BadFaith |
see also symfony/symfony#5711 |
@lsmith77 so basically there is no good library for content negociation in PHP.
Should we work on something then? Thoughts? |
the fig group is discussing a PSR for Http Messages .. that would prevent requiring a hard dependency on Symfony2 stuff. as for the POC .. yeah but things will not get finished unless people work on it .. and as you point out .. there arent any alternatives really. |
Yeah... wait & see William Durand | http://www.williamdurand.fr On Sat, Jan 12, 2013 at 7:42 PM, Lukas Kahwe Smith <notifications@github.com
|
or help out and rejoice? :) |
So... I wrote a small library for accept headers parsing, including a way to get the best format. I thought I could find a decent test suite in the apache mod_negociation project, but it's quite basic actually. Thing is, it uses a lot of code from HttpFoundation. And no, I didn't contribute to BadFaith as I didn't get the big picture... too many classes. |
@willdurand well if its more sophisticated than what we have in here, i wouldn't mind replacing it :) |
It's in a dirty state on my laptop ;-) But basically, it's a standalone lib. |
well i am open to drop it in here. after all there isnt much else in here. |
ja |
http://httpd.apache.org/docs/2.2/mod/mod_negotiation.html
http://httpd.apache.org/docs/2.2/content-negotiation.html
The text was updated successfully, but these errors were encountered: