sabre-io/http

Runtime HTTP class

Hywan opened this issue · 4 comments

Hello :-),

Is it interesting to have a runtime HTTP class like Hoa\Http\Runtime? It allows to have the getMethod, getUri, getData (useful), getHeaders methods and so on. This is a read-only object.

Note: such class could return a Sabre\Http\Request object.

most of this functionality is already present in Sabre\Http\Request, so what should the runtime contain actually?

It exposes the current HTTP request informations (the request that runs the current processus), this is why I call it “runtime”.

The Sapi in combination with the Request object exposes this information.

In the future we'll go to PSR-7 for this though

Ok, good :-). Please, enjoy your rest in holidays ;-).