Add http request description

This commit is contained in:
Dennis Eichhorn 2017-07-09 10:09:45 +02:00
parent f114f18ae6
commit 766d5040b3

View File

@ -4,7 +4,19 @@ Requests can be either incoming requests such as http requests on the server sid
## Http Requests
## Rest Requests
Every request accepts a localization for localized responses, optionally the request URI can also be passed during initialization.
```
$request = new Request(new Localization(), new Http());
```
In case no URI is provided the request object initializes the current http request URI. The request object automatically removes all global request variables (e.g. $_GET) in case the current http request gets initialized. All the data will be available through:
```
$request->getData('queryName');
```
During the request initialization the UriBuilder will be set up as well.
## Socket Requests