typo, parameter and type fixes
[mdref/mdref-http] / http / Client / enqueue.md
index b5a6d756cee268fdc37a7ac82d910b90ec29abfb..25889a7c9b0062eac1a4624e3683d50a9e7f12ba 100644 (file)
@@ -3,13 +3,22 @@
 Add another http\Client\Request to the request queue.
 If the optional callback $cb returns true, the request will be automatically dequeued.
 
+> ***Note:***  
+> The http\Client\Response object resulting from the request is always stored 
+> internally to be retrieved at a later time, __even__ when $cb is used.
+> 
+> If you are about to send a lot of requests and do __not__ need the response
+> after executing the callback, you can use http\Client::getResponse() within
+> the callback to keep the memory usage level as low as possible.
+
 See http\Client::dequeue() and http\Client::send().
 
+
 ## Params:
 
 * http\Client\Request $request  
   The request to enqueue.
-* Optional callable $cb  
+* Optional callable $cb as function(\http\Response $response) : ?bool  
   A callback to automatically call when the request has finished.
 
 ## Returns: