Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

implement mod_negotiation algorithm #1

Closed
lsmith77 opened this issue Nov 2, 2011 · 12 comments
Closed

implement mod_negotiation algorithm #1

lsmith77 opened this issue Nov 2, 2011 · 12 comments

Comments

@lsmith77
Copy link
Member

lsmith77 commented Nov 2, 2011

http://httpd.apache.org/docs/2.2/mod/mod_negotiation.html
http://httpd.apache.org/docs/2.2/content-negotiation.html

@stof
Copy link
Member

stof commented May 16, 2012

@lsmith77 any news about this ?

@lsmith77
Copy link
Member Author

this is being worked on in https://github.com/winmillwill/BadFaith

@lsmith77
Copy link
Member Author

see also symfony/symfony#5711

@willdurand
Copy link
Member

@lsmith77 so basically there is no good library for content negociation in PHP.

  1. BadFaith seems no more maintained, and there is a lot of work to do in order to make it useful;
  2. FOSRest is tied to HttpFoundation, which is not good for interoperability. We definitely need something low level;
  3. The PR on Symfony2 doesn't add a new component, and seems not ready (it's more a POC).

Should we work on something then? Thoughts?

@lsmith77
Copy link
Member Author

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.

@willdurand
Copy link
Member

Yeah... wait & see

William Durand | http://www.williamdurand.fr

On Sat, Jan 12, 2013 at 7:42 PM, Lukas Kahwe Smith <notifications@github.com

wrote:

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.


Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-12182267.

@lsmith77
Copy link
Member Author

or help out and rejoice? :)

@willdurand
Copy link
Member

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.

@lsmith77
Copy link
Member Author

@willdurand well if its more sophisticated than what we have in here, i wouldn't mind replacing it :)
i don't see a new repo on your account, so you haven't pushed it yet .. or is the plan to integrate it here?

@willdurand
Copy link
Member

It's in a dirty state on my laptop ;-) But basically, it's a standalone lib.

@lsmith77
Copy link
Member Author

well i am open to drop it in here. after all there isnt much else in here.

@willdurand
Copy link
Member

ja

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants