You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP request and response are encapsulated in `Nette\Http\Request` and `Nette\Http\Response` objects which offer comfortable API and also act as
12
16
sanitization filter.
13
17
14
-
Install it using Composer:
18
+
Documentation can be found on the [website](https://doc.nette.org/http-request-response).
19
+
20
+
21
+
Installation
22
+
------------
23
+
24
+
The recommended way to install is via Composer:
15
25
16
26
```
17
27
composer require nette/http
18
28
```
19
29
20
-
The last stable release requires PHP version 5.6 or newer (is compatible with PHP 7.0 and 7.1). The dev-master version requires PHP 7.1.
30
+
It requires PHP version 5.6 and supports PHP up to 7.2. The dev-master version requires PHP 7.1.
21
31
22
32
23
33
HTTP Request
24
-
-------------
34
+
------------
25
35
26
36
Nette cleans out data sent by user from control and invalid characters.
27
37
@@ -112,7 +122,7 @@ echo $httpRequest->detectLanguage($langs); // en
112
122
113
123
114
124
RequestFactory and URL filtering
115
-
------------------
125
+
--------------------------------
116
126
117
127
Object holding current HTTP request is created by [api:Nette\Http\RequestFactory]. Its behavior can be modified.
118
128
It's possible to clean up URLs from characters that can get into them because of poorly implemented comment systems on various other websites by using filters:
0 commit comments