Runtime HTTP class
Hywan opened this issue · 4 comments
Hywan commented
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.
staabm commented
most of this functionality is already present in Sabre\Http\Request
, so what should the runtime contain actually?
Hywan commented
It exposes the current HTTP request informations (the request that runs the current processus), this is why I call it “runtime”.
evert commented
The Sapi in combination with the Request object exposes this information.
In the future we'll go to PSR-7 for this though
Hywan commented
Ok, good :-). Please, enjoy your rest in holidays ;-).