X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http%2FClient%2FgetResponse.md;h=d47fa5a33f578a6d0dc0a56b5319ad59d6bd9c99;hb=cc546766c66ff78feac4a87302ab93a6b93450aa;hp=e2dc7ca2e6836dc4978613511e37814fe5679979;hpb=a9966e91a49824155b1d9b3b3a580d43b20e3662;p=mdref%2Fmdref-http diff --git a/http/Client/getResponse.md b/http/Client/getResponse.md index e2dc7ca..d47fa5a 100644 --- a/http/Client/getResponse.md +++ b/http/Client/getResponse.md @@ -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: