From b917d7048e6412e854f337f5d1cfb70e8dd0b0be Mon Sep 17 00:00:00 2001 From: root Date: Mon, 7 Dec 2020 11:37:54 +0000 Subject: [PATCH] Add handlerStats method for Http Client --- 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. *