middlewares/response-time

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

Homepage:

Size: 22

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.

oser require middlewares/response-time
Example
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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.