Skip to content

Commit a484ddb

Browse files
authored
Merge pull request #158 from php-http/request-immutable
avoid confusion about request
2 parents 4cc854f + 305d615 commit a484ddb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/build-your-own.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,9 @@ This interface defines the ``handleRequest`` method that allows to modify behavi
2525
*/
2626
public function handleRequest(RequestInterface $request, callable $next, callable $first);
2727

28-
The ``$request`` comes from an upstream plugin or Plugin Client itself.
28+
The ``$request`` comes from an upstream plugin or ``PluginClient`` itself.
2929
You can replace it and pass a new version downstream if you need.
3030

31-
.. note::
32-
33-
Be aware that the request is immutable.
34-
3531
The ``$next`` callable is the next plugin in the execution chain. When you need to call it, you must pass the ``$request``
3632
as the first argument of this callable.
3733

0 commit comments

Comments
 (0)