Skip to content

Commit

Permalink
Use PSR7 interface methods in doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 16, 2016
1 parent 62a3a29 commit e3ce83f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Http/Client/Response.php
Expand Up @@ -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
Expand All @@ -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;
Expand All @@ -81,7 +82,7 @@
* You can access the response status code using:
*
* ```
* $content = $response->statusCode();
* $content = $response->getStatusCode();
* ```
*
* You can also use object access:
Expand Down

0 comments on commit e3ce83f

Please sign in to comment.