\Mine\MiddlewaresHttpCoreMiddleware

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
handleNotFound()
handleMethodNotAllowed()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

handleNotFound()

handleNotFound(\Psr\Http\Message\ServerRequestInterface  $request) : \Psr\Http\Message\ResponseInterface

Handle the response when cannot found any routes.

Parameters

\Psr\Http\Message\ServerRequestInterface $request

Returns

\Psr\Http\Message\ResponseInterface

handleMethodNotAllowed()

handleMethodNotAllowed(array  $methods, \Psr\Http\Message\ServerRequestInterface  $request) : \Psr\Http\Message\ResponseInterface

Handle the response when the routes found but doesn't match any available methods.

Parameters

array $methods
\Psr\Http\Message\ServerRequestInterface $request

Returns

\Psr\Http\Message\ResponseInterface