middlewares/shutdown

Name: shutdown

Owner: Middlewares

Description: PSR-15 middleware to display a 503 maintenance page

Created: 2016-10-08 09:48:25.0

Updated: 2018-02-04 18:46:15.0

Pushed: 2018-01-27 14:39:32.0

Homepage: null

Size: 26

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

middlewares/shutdown

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

Middleware to display a 503 maintenance page.

Requirements
Installation

This package is installable and autoloadable via Composer as middlewares/shutdown.

oser require middlewares/shutdown
Example
patcher = new Dispatcher([
(new Middlewares\Shutdown())->retryAfter(60 * 5)


ponse = $dispatcher->dispatch(new ServerRequest());
Options
__construct(Interop\Http\Server\RequestHandlerInterface $handler = null)

The request handler used to generate the response. If it's not provided, the default will be used.

retryAfter(int|DateTimeInterface $duration)

If known, the length of the downtime in seconds or the estimated date and time when the downtime will be complete. More info about why this


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.