From 766d5040b300e30fe86e24f0d2dbe7efb247ee10 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 9 Jul 2017 10:09:45 +0200 Subject: [PATCH] Add http request description --- basics/requests.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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