26 $this->inner = $inner;
37 return $this->inner->getMethod();
49 $this->inner->setMethod($method);
60 return $this->inner->getUrl();
72 $this->inner->setUrl(
$url);
83 return $this->inner->getAbsoluteUrl();
95 $this->inner->setAbsoluteUrl(
$url);
106 return $this->inner->getBaseUrl();
122 $this->inner->setBaseUrl(
$url);
145 return $this->inner->getPath();
158 return $this->inner->getQueryParameters();
171 return $this->inner->getPostData();
188 $this->inner->setPostData($postData);
203 return $this->inner->getRawServerValue($valueName);
215 $this->inner->setRawServerData($data);
228 return $this->inner->__toString();
The RequestInterface represents a HTTP request.
getQueryParameters()
Returns the list of query parameters.
trait MessageDecoratorTrait
This trait contains a bunch of methods, shared by both the RequestDecorator and the ResponseDecorator...
__toString()
Serializes the request object as a string.
getPath()
Returns the relative path.
setAbsoluteUrl($url)
Sets the absolute url.
getUrl()
Returns the request url.
setBaseUrl($url)
Sets a base url.
getMethod()
Returns the current HTTP method.
getAbsoluteUrl()
Returns the absolute url.
setRawServerData(array $data)
Sets the _SERVER array.
setPostData(array $postData)
Sets the post data.
__construct(RequestInterface $inner)
Constructor.
getPostData()
Returns the POST data.
if($session===NULL) $postData
setUrl($url)
Sets the request url.
setMethod($method)
Sets the HTTP method.
getBaseUrl()
Returns the current base url.
getRawServerValue($valueName)
Returns an item from the _SERVER array.