File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
use Http \Promise \Promise ;
8
8
use Psr \Http \Message \RequestInterface ;
9
+ use Psr \Http \Message \ResponseInterface ;
9
10
10
11
/**
11
12
* A plugin is a middleware to transform the request and/or the response.
@@ -24,8 +25,8 @@ interface Plugin
24
25
*
25
26
* @see http://docs.php-http.org/en/latest/plugins/build-your-own.html
26
27
*
27
- * @param callable(RequestInterface ): Promise $next Next middleware in the chain, the request is passed as the first argument
28
- * @param callable(RequestInterface ): Promise $first First middleware in the chain, used to to restart a request
28
+ * @param callable(ResponseInterface ): Promise $next Next middleware in the chain, the request is passed as the first argument
29
+ * @param callable(ResponseInterface ): Promise $first First middleware in the chain, used to to restart a request
29
30
*
30
31
* @return Promise Resolves a PSR-7 Response or fails with an Http\Client\Exception (The same as HttpAsyncClient)
31
32
*/
You can’t perform that action at this time.
0 commit comments