diff --git a/basics/requests.md b/basics/requests.md index 3833a64..af836b9 100644 --- a/basics/requests.md +++ b/basics/requests.md @@ -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