Closed mikeevstropov closed 4 years ago
I use example from https://goo.gl/TcQTcd but cant detect proxy request. Please, help anyone!
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use GuzzleHttp\MessageFormatter;
use Monolog\Logger;
$stack = HandlerStack::create();
$stack->push(
Middleware::log(
new Logger('Logger'),
new MessageFormatter('{req_body} - {res_body} - {is_proxy???}')
)
);
$client = new \GuzzleHttp\Client(
[
'base_uri' => 'http://httpbin.org',
'handler' => $stack,
]
);
It seems to me that it is not implemented, and I think it's not possible to get the proxy in the message formatters since this information is not carried by the HTTP messages, sorry.
This issue was automatically classified as stale because it lacks information or cannot be reproduced.
If you think the issue is still valid and/or misclassified, please comment on the issue thread and provide additional information (if possible).
Also, since the time maintainers can spend on the project is limited, please provide a possible solution if possible, especially if it involves a platform that we cannot test ourselves (Windows, very old/specific PHP versions, etc).
Issues marked as stale with no further activity will be marked as rotten
at some point and will automatically be closed within 14 days.
We do this so that we can focus on high priority issues. Thank you for your understanding.
Hi. This is all what we can use for template.
Where is {proxy}?
https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php