PSR-15 middleware to save the response time into the X-Response-Time header
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.editorconfig
.gitattributes
.gitignore
.php_cs
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
composer.json
phpcs.xml.dist
phpunit.xml.dist

README.md

middlewares/response-time

Latest Version on Packagist Software License Build Status Quality Score Total Downloads SensioLabs Insight

Middleware to calculate the response time (in miliseconds) and save it into the X-Response-Time header.

Requirements

Installation

This package is installable and autoloadable via Composer as middlewares/response-time.

composer require middlewares/response-time

Example

$dispatcher = new Dispatcher([
	new Middlewares\ResponseTime()
]);

$response = $dispatcher->dispatch(new ServerRequest());

Please see CHANGELOG for more information about recent changes and CONTRIBUTING for contributing details.

The MIT License (MIT). Please see LICENSE for more information.