diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig index 7315b4eb9d0a1..94b8692eca10d 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig @@ -1,5 +1,7 @@ {% extends '@WebProfiler/Profiler/layout.html.twig' %} +{% import _self as helper %} + {% block toolbar %} {% if collector.requestCount %} {% set icon %} @@ -88,6 +90,7 @@ {% if trace.options is not empty %} {{ profiler_dump(trace.options, maxDepth=1) }} {% endif %} + {% if profiler_token and profiler_link %} @@ -121,6 +124,8 @@ + {# tmp: introspect the "trace" #} + {{ dump(trace) }} {% endfor %} {% endif %} @@ -128,4 +133,19 @@ {% endfor %} {% endif %} + + + {% endblock %} + +{% macro render_curl(trace) %} +curl "{{ trace.url }}" --compressed -H "Connection: keep-alive" -v +{% endmacro %}