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
Copy file name to clipboardExpand all lines: readme.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ HTTP Request
37
37
38
38
Nette cleans out data sent by user from control and invalid characters.
39
39
40
-
The URL of the request is available as [api:Nette\Http\UrlScript] instance:
40
+
The URL of the request is available as Nette\Http\UrlScript instance:
41
41
42
42
```php
43
43
$url = $httpRequest->getUrl();
@@ -72,7 +72,7 @@ echo $httpRequest->getRemoteAddress(); // user's IP address
72
72
echo $httpRequest->getRemoteHost(); // and its DNS translation
73
73
```
74
74
75
-
What URL the user came from? Returned as [Nette\Http\Url |urls] object.
75
+
What URL the user came from? Returned as Nette\Http\Url object.
76
76
77
77
```php
78
78
echo $httpRequest->getReferer()->host;
@@ -91,7 +91,7 @@ $cookies = $httpRequest->getCookies(); // array of all cookies
91
91
$sessId = $httpRequest->getCookie('sess_id'); // returns the cookie (or null)
92
92
```
93
93
94
-
Uploaded files are encapsulated into [api:Nette\Http\FileUpload] objects:
94
+
Uploaded files are encapsulated into Nette\Http\FileUpload objects:
95
95
96
96
```php
97
97
$files = $httpRequest->getFiles(); // array of all uploaded files
@@ -126,7 +126,7 @@ echo $httpRequest->detectLanguage($langs); // en
126
126
RequestFactory and URL filtering
127
127
--------------------------------
128
128
129
-
Object holding current HTTP request is created by [api:Nette\Http\RequestFactory]. Its behavior can be modified.
129
+
Object holding current HTTP request is created by Nette\Http\RequestFactory. Its behavior can be modified.
130
130
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:
131
131
132
132
```php
@@ -156,9 +156,9 @@ HTTP response
156
156
Whether it is still possible to send headers or change the status code tells the `isSent()` method. If it returns true,
157
157
it won't be possible to send another header or change the status code.
158
158
159
-
In that case, any attempt to send header or change code invokes `Nette\InvalidStateException`. .[caution]
159
+
In that case, any attempt to send header or change code invokes `Nette\InvalidStateException`.
160
160
161
-
[Response status code | http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10] can be sent and retrieved this way:
161
+
Response status code can be sent and retrieved this way:
0 commit comments