http-interop/response-sender

A function to convert PSR-7 Response to HTTP output

1.0.0 2017-03-17 15:46 UTC

README

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