psr7-middlewares:PSR-7 HTTP消息对象的中间件

时间:2024-05-30 08:14:49
【文件属性】:

文件名称:psr7-middlewares:PSR-7 HTTP消息对象的中间件

文件大小:4KB

文件格式:ZIP

更新时间:2024-05-30 08:14:49

PHP

不再维护 而是创建可调用的中间件。 签名: function ( RequestInterface $ request , ResponseInterface $ response , callable $ next ) { // Do something with the request before passing it on. . . . // Pass on to next middleware. $ response = $ next ( $ request , $ response ); // Do something with the response after the next middleware has been called. . . . // Return ultimate response object.


【文件预览】:
psr7-middlewares-master
----src()
--------Contracts()
--------Builder.php(796B)
--------Stack.php(2KB)
--------Traits()
--------StackException.php(87B)
----composer.json(811B)

网友评论