| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 61 | All time:  10,489 This week: 455  | ||||
| Version | License | PHP version | Categories | |||
| http-message 1.0.0 | GNU Lesser Genera... | 5 | HTTP, PHP 5, PSR | 
| Description | Author | |
| This package provides a PSR-7 compliant HTTP request handling. | 
| 
 | 
The Kigkonsult\Http\Message package provide [PSR] server-side
> _Message_ class
> _Stream_ class
> _Response_ class
The Response class has an added property: 
* rawBody
  *  response body (type mixed) before serialization/encoding
in parallel with 
* (Psr\Http\Message\)ServerRequest::parsedBody
* (Psr\Http\Message\)ServerRequest::body
with corresponding methods:
* getRawBody()
  *  Return rawBody
* isRawBodyEmpty()
  *  Return bool true on empty rawBody
* withRawBody()
  *  Return new instance with rawBody
and two rawBody/body methods
* getResponseBody() 
  *  Return rawBody if not empty else body
* isBodyEmpty()
  *  Return bool true if (serialized/encoded) body is empty
Two statusCode methods are added:
[Composer], from the Command Line:
composer require kigkonsult/http-master:dev-master
Composer, in your composer.json:
{
    "require": {
        "kigkonsult/http-master": "dev-master"
    }
}
Composer, acquire access
<?php
use Kigkonsult\Http\Message\Stream;
use Kigkonsult\Http\Message\Message;
use Kigkonsult\Http\Message\Response;
...
include 'vendor/autoload.php';
Otherwise , download and acquire..
<?php
use Kigkonsult\Http\Message\Stream;
use Kigkonsult\Http\Message\Message;
use Kigkonsult\Http\Message\Response;
...
include 'pathToSource/http-master/autoload.php';
This project is licensed under the LGPLv3 License
[Psr]:https://github.com/php-fig/http-message [Psr\Http\Message\MessageInterface]:https://github.com/php-fig/http-message [Psr\Http\Message\StreamInterface]:https://github.com/php-fig/http-message [Psr\Http\Message\ResponseInterface]:https://github.com/php-fig/http-message [Fig\Http\Message\StatusCodeInterface]:https://github.com/php-fig/http-message-util [Composer]:https://getcomposer.org/
|  Files (13) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  docs (2 files) | ||||
|  src (4 files) | ||||
|  test (3 files) | ||||
|    autoload.php | Aux. | Auxiliary script | ||
|    composer.json | Data | Auxiliary data | ||
|    phpunit.xml | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (13) | / | src | 
| File | Role | Description | 
|---|---|---|
|  Message.php | Class | Class source | 
|  Response.php | Class | Class source | 
|  ResponseInterface.php | Class | Class source | 
|  Stream.php | Class | Class source | 
|  Files (13) | / | test | 
| File | Role | Description | 
|---|---|---|
|  MessageTest.php | Class | Class source | 
|  ResponseTest.php | Class | Class source | 
|  StreamTest.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.