Skip to content

Commit 237bb58

Browse files
committed
readme: updated
1 parent 5a6660c commit 237bb58

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

readme.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,30 @@ Nette HTTP Component
88
[![Latest Stable Version](https://poser.pugx.org/nette/http/v/stable)](https://github.com/nette/http/releases)
99
[![License](https://img.shields.io/badge/license-New%20BSD-blue.svg)](https://github.com/nette/http/blob/master/license.md)
1010

11+
12+
Introduction
13+
------------
14+
1115
HTTP request and response are encapsulated in `Nette\Http\Request` and `Nette\Http\Response` objects which offer comfortable API and also act as
1216
sanitization filter.
1317

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

1626
```
1727
composer require nette/http
1828
```
1929

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

2232

2333
HTTP Request
24-
-------------
34+
------------
2535

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

@@ -112,7 +122,7 @@ echo $httpRequest->detectLanguage($langs); // en
112122

113123

114124
RequestFactory and URL filtering
115-
------------------
125+
--------------------------------
116126

117127
Object holding current HTTP request is created by [api:Nette\Http\RequestFactory]. Its behavior can be modified.
118128
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:
@@ -139,7 +149,7 @@ $container->addService('httpRequest', $requestFactory->createHttpRequest());
139149

140150

141151
HTTP response
142-
--------------
152+
-------------
143153

144154
Whether it is still possible to send headers or change the status code tells the `isSent()` method. If it returns true,
145155
it won't be possible to send another header or change the status code.

0 commit comments

Comments
 (0)