mirror of
https://github.com/Karaka-Management/Developer-Guide.git
synced 2026-01-11 20:38:42 +00:00
Add http request description
This commit is contained in:
parent
f114f18ae6
commit
766d5040b3
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user