You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous versions it was easy to get the (curl) connection time via $event->getTransferInfo().
In guzzle6 I can't find a good way to do this. It seems that this information is not even stored anywhere.
I am aware that including this additional information would break the elegance and purity of the code so I can live without it. But maybe I am missing sth and it would be possible to pass this information so it's accessible in a handler?
I am using guzzle with a Symfony2 bundle which simplifies API debugging in a few projects. Having the connection time really helps with identifying network problems and slow API endpoints/calls.
The text was updated successfully, but these errors were encountered:
This was also requested in #1091 (comment). I would love for there to be a new request option that accepts a callback and invokes the callback with transfer information. Maybe the request option is called "on_transfer_info" and it invokes a callback with a request, response, and array of HTTP handler specific transfer data (non-normalized across backends).
In previous versions it was easy to get the (curl) connection time via
$event->getTransferInfo()
.In guzzle6 I can't find a good way to do this. It seems that this information is not even stored anywhere.
I am aware that including this additional information would break the elegance and purity of the code so I can live without it. But maybe I am missing sth and it would be possible to pass this information so it's accessible in a handler?
I am using guzzle with a Symfony2 bundle which simplifies API debugging in a few projects. Having the connection time really helps with identifying network problems and slow API endpoints/calls.
The text was updated successfully, but these errors were encountered: