gmarche/vendor/http-interop/response-sender/README.md

392 B

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