Skip to content

Commit

Permalink
Add handlerStats method for Http Client (#35520)
Browse files Browse the repository at this point in the history
Co-authored-by: root <root@homedev.rconfig.com>
  • Loading branch information
stephenstack and root committed Dec 7, 2020
1 parent c007d7c commit b57b61c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Http/Client/Response.php
Expand Up @@ -120,6 +120,16 @@ public function effectiveUri()
return $this->transferStats->getEffectiveUri();
}

/**
* Get the handler stats of the response.
*
* @return \Psr\Http\Message\UriInterface
*/
public function handlerStats()
{
return $this->transferStats->getHandlerStats();
}

/**
* Determine if the request was successful.
*
Expand Down

0 comments on commit b57b61c

Please sign in to comment.