update for 4.1.0
[mdref/mdref-http] / http / Client / getResponse.md
index e2dc7ca2e6836dc4978613511e37814fe5679979..d47fa5a33f578a6d0dc0a56b5319ad59d6bd9c99 100644 (file)
@@ -1,8 +1,9 @@
 # http\Client\Response http\Client::getResponse([http\Client\Request $request = NULL])
 
-Retrieve the corresponding reponse of an already finished request, or the last received response if $request is not set.
+Retrieve the corresponding response of an already finished request, or the last received response if $request is not set.
 
-> **Note:** If $request is NULL, then the response is removed from the internal storage (stack-like operation).
+> ***NOTE:***  
+> If $request is NULL, then the response is removed from the internal storage (stack-like operation).
 
 ## Params:
 
@@ -12,7 +13,12 @@ Retrieve the corresponding reponse of an already finished request, or the last r
 ## Returns:
 
 * http\Client\Response, the stored response for the request, or the last that was received.
-* NULL, if no response was found.
+* NULL, if no more response was available to pop, when no $request was given.
+
+## Throws:
+
+* http\Exception\InvalidArgumentException
+* http\Exception\UnexpectedValueException
 
 ## Example: