--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/20CB9622-95E3-4723-8565-05219B13EFDF%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
We've never once proposed PSR-7 was client or server, it's just a PHP representation of a HTTP message.
The only difference between that and a http client to my knowledge is that a client is built to actually make and send these requests, then return a response.
We aren't doing the client bit, just the request and the response.
We agreed there?
Client and server would both wrap around and use these messages.
For a controller to build up a response is easy enough, you just need to set headers and body and send it on it's way. Or make a stream perhaps. That's all a response needs to do, then the server implementation (out of scope) is responsible for actually putting that out there.
How many convenience methods we define for these request/response get/set get and files stuff is up to you lot, but I'd not be a fan of this scope creeping too far. Making this into a HTTP client would certainly be scope creep.
I think server implementations will be just fine taking the URL and using other code to split it up. We don't need to care what they do there or how, we just document the raw message and let them use parse_url() or league\url or whatever else.
Right? Are there other examples of problems that I'm not thinking of?
On Sep 28, 2014, at 5:54 PM, Philip Sturgeon <pjstu...@gmail.com> wrote:
> I think server implementations will be just fine taking the URL and using other code to split it up. We don't need to care what they do there or how, we just document the raw message and let them use parse_url() or league\url or whatever else.
That's part of my points about "making extra work" and "re-parsing every time".
Also, the return result of getUrl() (or whatever) will be different depending on the implementation, meaning there's no standard for it.
Then there retrieval of $_GET, $_POST, $_FILES, and other values in a standard way. Etc etc.
Anyways... I think all of Paul's concerns are now addressed with the proposed IncomingRequestInterface.