\App\MiddlewareRequestMiddleware

RequestMiddleware 接到客户端请求,通过该中间件进行一些调整

Summary

Methods
Properties
Constants
__construct()
process()
No public properties found
No constants found
getRequestId()
$container
$request
N/A
No private methods found
No private properties found
N/A

Properties

$container

$container : \Psr\Container\ContainerInterface

Type

\Psr\Container\ContainerInterface

$request

$request : \Psr\Http\Message\ServerRequestInterface

Type

\Psr\Http\Message\ServerRequestInterface

Methods

__construct()

__construct(\Psr\Container\ContainerInterface  $container, \Psr\Http\Message\ServerRequestInterface  $request) 

Parameters

\Psr\Container\ContainerInterface $container
\Psr\Http\Message\ServerRequestInterface $request

process()

process(\Psr\Http\Message\ServerRequestInterface  $request, \Psr\Http\Server\RequestHandlerInterface  $handler) 

Parameters

\Psr\Http\Message\ServerRequestInterface $request
\Psr\Http\Server\RequestHandlerInterface $handler

getRequestId()

getRequestId() : string

getRequestId 唯一请求id User:YM Date:2019/11/18 Time:下午7:53

Returns

string