Closed neural-wetware closed 9 years ago
Okay. Another attempt. This is my first time using github so I'm kinda still working things out. The other pull request was crap, I admit. The function didn't even work, let alone execute in php 5.3.
I do think this function is necessary. My application definitely needs it. I'm coding hack workarounds to accommodate the lack of this function.
Oh ok, now I understand. I don't know if it enough, but I am willing to work on this.
Question: if it is a media range (application/*
for instance), what should this method return?
getBest() returns the media type that the server will return to the client. It has to be an actual media type, not a media type range.
@neural-wetware I get that, however AcceptHeader
might be used somewhere else, hence my question. When adding a feature/method/something, it is always good to think out of the scope of the initial need :)
I guess it should just return application/*
.
So can we merge this one?
I'd like to add more tests first
also, this needs to be documented :)
How can I add documentation for this?
Hey Will. Just wondering if you're going to merge this? Thanks.
I will!
merged! thanks @neural-wetware
Necessary to get the actual media type without the parameters appened.