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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Middleware to display a 503
maintenance page.
This package is installable and autoloadable via Composer as middlewares/shutdown.
oser require middlewares/shutdown
patcher = new Dispatcher([
(new Middlewares\Shutdown())->retryAfter(60 * 5)
ponse = $dispatcher->dispatch(new ServerRequest());
__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.