Skip to content
Permalink
Browse files

Use PSR7 interface methods in doc blocks.

  • Loading branch information...
markstory committed May 14, 2016
1 parent 62a3a29 commit e3ce83f3acc9fc2573e4eb32193534912972f2d8
Showing with 7 additions and 6 deletions.
  1. +7 −6 src/Http/Client/Response.php
@@ -30,14 +30,14 @@
* when the response is parsed.
*
* ```
* $val = $response->header('content-type');
* $val = $response->getHeaderLine('content-type');
* ```
*
* Will read the Content-Type header. You can get all set
* headers using:
*
* ```
* $response->header();
* $response->getHeaders();
* ```
*
* You can also get at the headers using object access. When getting
@@ -50,13 +50,14 @@
*
* ### Get the response body
*
* You can access the response body using:
* You can access the response body stream using:
*
* ```
* $content = $response->body();
* $content = $response->getBody();
* ```
*
* You can also use object access:
* You can also use object access to get the string version
* of the response body:
*
* ```
* $content = $response->body;
@@ -81,7 +82,7 @@
* You can access the response status code using:
*
* ```
* $content = $response->statusCode();
* $content = $response->getStatusCode();
* ```
*
* You can also use object access:

0 comments on commit e3ce83f

Please sign in to comment.
You can’t perform that action at this time.