nox a0fd572948 | ||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
LICENSE | ||
README.md | ||
composer.json | ||
phpunit.xml.dist |
README.md
HTTP Response Sender
A simple function that will send PSR-7 ResponseInterface
headers and body.
Installation
composer require http-interop/response-sender
Usage
use function Http\Response\send;
// Any ResponseInterface instance can be used.
$notFound = $responseFactory->createResponse(404);
// Send headers and body.
send($notFound);
License
MIT