-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[WebProfilerBundle][HttpClient] Added profiler links in the Web Profiler -> Http Client panel #35391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebProfilerBundle][HttpClient] Added profiler links in the Web Profiler -> Http Client panel #35391
Conversation
Nice 👍 . Thanks for implementing it. I was wondering though. This solutions works only if the profiler token is on the same url. Why not pointing out to the link provided by the header ? (in a new tab maybe ?) |
Yeah, good idea, I will update the implementation and use the x-debug-token-link header instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea.
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Outdated
Show resolved
Hide resolved
Thank you for the feedback @Neirda24 and @nicolas-grekas. I have made the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(with minor comments)
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
Outdated
Show resolved
Hide resolved
…ler -> Http Client panel
Thank you @cristagu. |
As per @Neirda24's idea in this comment, I parsed the response headers collected by the TraceableHttpClient and created profiler links in the HttpClient Web Profiler panel for all the requests having the 'X-Debug-Token' header.