Skip to content

Commit

Permalink
Added method response()
Browse files Browse the repository at this point in the history
  • Loading branch information
ezra-obiwale committed Nov 2, 2017
1 parent a35295a commit 1d5b2ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/helpers/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ The status code of response.

The raw response object.

### response ( )

<p class="tip no-bg">
public static function response ( ) : `mixed`
</p>

The processed response object.

### client ( )

<p class="tip no-bg">
Expand Down
4 changes: 4 additions & 0 deletions src/Helpers/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public static function rawResponse() {
return self::$response;
}

public static function response() {
return self::processResponse();
}

public static function __callStatic($method, $args)
{
return self::req($method, $args);
Expand Down

0 comments on commit 1d5b2ff

Please sign in to comment.