Skip to content

Commit 2174759

Browse files
committed
readme: typos
1 parent bdb4516 commit 2174759

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ HTTP Request
3737

3838
Nette cleans out data sent by user from control and invalid characters.
3939

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:
4141

4242
```php
4343
$url = $httpRequest->getUrl();
@@ -72,7 +72,7 @@ echo $httpRequest->getRemoteAddress(); // user's IP address
7272
echo $httpRequest->getRemoteHost(); // and its DNS translation
7373
```
7474

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.
7676

7777
```php
7878
echo $httpRequest->getReferer()->host;
@@ -91,7 +91,7 @@ $cookies = $httpRequest->getCookies(); // array of all cookies
9191
$sessId = $httpRequest->getCookie('sess_id'); // returns the cookie (or null)
9292
```
9393

94-
Uploaded files are encapsulated into [api:Nette\Http\FileUpload] objects:
94+
Uploaded files are encapsulated into Nette\Http\FileUpload objects:
9595

9696
```php
9797
$files = $httpRequest->getFiles(); // array of all uploaded files
@@ -126,7 +126,7 @@ echo $httpRequest->detectLanguage($langs); // en
126126
RequestFactory and URL filtering
127127
--------------------------------
128128

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.
130130
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:
131131

132132
```php
@@ -156,9 +156,9 @@ HTTP response
156156
Whether it is still possible to send headers or change the status code tells the `isSent()` method. If it returns true,
157157
it won't be possible to send another header or change the status code.
158158

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`.
160160

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:
162162

163163
```php
164164
$httpResponse->setCode(Nette\Http\Response::S404_NOT_FOUND);
@@ -239,4 +239,4 @@ $httpResponse->deleteCookie('lang'); // delete cookie
239239
```
240240

241241
These two methods can take more parameters: `$path` (subdirectory where the cookie will be available),
242-
`$domain` and `$secure`. Their detailed description can be found in PHP manual for [php:setcookie] function.
242+
`$domain` and `$secure`. Their detailed description can be found in PHP manual for setcookie function.

0 commit comments

Comments
 (0)