http-interop / response-sender

PSR-7 Response sender function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

PSR-7 Response sender function

License:MIT License


Languages

Language:PHP 100.0%