@@ -10,7 +10,7 @@ Event-driven, streaming plaintext HTTP and secure HTTPS server for [ReactPHP](ht
1010* [ Usage] ( #usage )
1111 * [ Server] ( #server )
1212 * [ listen()] ( #listen )
13- * [ Request] ( #request )
13+ * [ Server Request] ( #server- request )
1414 * [ Request parameters] ( #request-parameters )
1515 * [ Query parameters] ( #query-parameters )
1616 * [ Request body] ( #request-body )
@@ -71,7 +71,7 @@ processing each incoming HTTP request.
7171
7272When a complete HTTP request has been received, it will invoke the given
7373request handler function. This request handler function needs to be passed to
74- the constructor and will be invoked with the respective [ request] ( #request )
74+ the constructor and will be invoked with the respective [ request] ( #server- request )
7575object and expects a [ response] ( #response ) object in return:
7676
7777``` php
@@ -88,7 +88,7 @@ $server = new React\Http\Server(function (Psr\Http\Message\ServerRequestInterfac
8888
8989Each incoming HTTP request message is always represented by the
9090[ PSR-7 ` ServerRequestInterface ` ] ( https://www.php-fig.org/psr/psr-7/#321-psrhttpmessageserverrequestinterface ) ,
91- see also following [ request] ( #request ) chapter for more details.
91+ see also following [ request] ( #server- request ) chapter for more details.
9292
9393Each outgoing HTTP response message is always represented by the
9494[ PSR-7 ` ResponseInterface ` ] ( https://www.php-fig.org/psr/psr-7/#33-psrhttpmessageresponseinterface ) ,
@@ -115,7 +115,7 @@ for more details.
115115By default, the ` Server ` buffers and parses the complete incoming HTTP
116116request in memory. It will invoke the given request handler function when the
117117complete request headers and request body has been received. This means the
118- [ request] ( #request ) object passed to your request handler function will be
118+ [ request] ( #server- request ) object passed to your request handler function will be
119119fully compatible with PSR-7 (http-message). This provides sane defaults for
12012080% of the use cases and is the recommended way to use this library unless
121121you're sure you know what you're doing.
@@ -190,7 +190,7 @@ $server = new React\Http\Server(array(
190190
191191In this case, it will invoke the request handler function once the HTTP
192192request headers have been received, i.e. before receiving the potentially
193- much larger HTTP request body. This means the [ request] ( #request ) passed to
193+ much larger HTTP request body. This means the [ request] ( #server- request ) passed to
194194your request handler function may not be fully compatible with PSR-7. This is
195195specifically designed to help with more advanced use cases where you want to
196196have full control over consuming the incoming HTTP request body and
@@ -246,7 +246,7 @@ $server->listen($socket);
246246
247247See also [ example #11 ] ( examples ) for more details.
248248
249- ### Request
249+ ### Server Request
250250
251251As seen above, the [ ` Server ` ] ( #server ) class is responsible for handling
252252incoming connections and then processing each incoming HTTP request.
0 commit comments