Name: response-time
Owner: Middlewares
Description: PSR-15 middleware to save the response time into the X-Response-Time header
Created: 2016-10-01 09:21:13.0
Updated: 2018-05-13 06:45:44.0
Pushed: 2018-01-27 14:09:49.0
Size: 22
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Middleware to calculate the response time (in miliseconds) and save it into the X-Response-Time header.
This package is installable and autoloadable via Composer as middlewares/response-time.
oser require middlewares/response-time
patcher = new Dispatcher([
new Middlewares\ResponseTime()
ponse = $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.