Chi-teck / response-time

PSR-15 middleware to save the response time into the X-Response-Time header

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

middlewares/response-time

Latest Version on Packagist Software License Testing Total Downloads

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

Usage

Dispatcher::run([
	new Middlewares\ResponseTime()
]);

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

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

About

PSR-15 middleware to save the response time into the X-Response-Time header

License:MIT License


Languages

Language:PHP 100.0%