From b57b61c01ea2a5666a5a2242117fa1d3db89ef63 Mon Sep 17 00:00:00 2001 From: Stephen Stack Date: Mon, 7 Dec 2020 14:28:31 +0000 Subject: [PATCH] Add handlerStats method for Http Client (#35520) Co-authored-by: root --- src/Illuminate/Http/Client/Response.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Illuminate/Http/Client/Response.php b/src/Illuminate/Http/Client/Response.php index eb1db35babe3..ac6afb4e1863 100644 --- a/src/Illuminate/Http/Client/Response.php +++ b/src/Illuminate/Http/Client/Response.php @@ -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. *