Skip to content

Commit

Permalink
readme: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 17, 2019
1 parent 56ae137 commit d49c441
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ HTTP Request

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

The URL of the request is available as [api:Nette\Http\UrlScript] instance:
The URL of the request is available as Nette\Http\UrlScript instance:

```php
$url = $httpRequest->getUrl();
Expand Down Expand Up @@ -72,7 +72,7 @@ echo $httpRequest->getRemoteAddress(); // user's IP address
echo $httpRequest->getRemoteHost(); // and its DNS translation
```

What URL the user came from? Returned as [Nette\Http\Url |urls] object.
What URL the user came from? Returned as Nette\Http\Url object.

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

Uploaded files are encapsulated into [api:Nette\Http\FileUpload] objects:
Uploaded files are encapsulated into Nette\Http\FileUpload objects:

```php
$files = $httpRequest->getFiles(); // array of all uploaded files
Expand Down Expand Up @@ -126,7 +126,7 @@ echo $httpRequest->detectLanguage($langs); // en
RequestFactory and URL filtering
--------------------------------

Object holding current HTTP request is created by [api:Nette\Http\RequestFactory]. Its behavior can be modified.
Object holding current HTTP request is created by Nette\Http\RequestFactory. Its behavior can be modified.
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:

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

In that case, any attempt to send header or change code invokes `Nette\InvalidStateException`. .[caution]
In that case, any attempt to send header or change code invokes `Nette\InvalidStateException`.

[Response status code | http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10] can be sent and retrieved this way:
Response status code can be sent and retrieved this way:

```php
$httpResponse->setCode(Nette\Http\Response::S404_NOT_FOUND);
Expand Down Expand Up @@ -239,4 +239,4 @@ $httpResponse->deleteCookie('lang'); // delete cookie
```

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

0 comments on commit d49c441

Please sign in to comment.