{% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block head %} {{ parent() }} {% endblock %} {% block toolbar %} {% if collector.requestCount %} {% set icon %} {{ source('@WebProfiler/Icon/http-client.svg') }} {% set status_color = '' %} {% endset %} {% set text %}
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }} {% endif %} {% endblock %} {% block menu %} {{ source('@WebProfiler/Icon/http-client.svg') }} HTTP Client {% if collector.requestCount %} {{ collector.requestCount }} {% endif %} {% endblock %} {% block panel %}No HTTP requests were made.
No requests were made with the "{{ name }}" service.
| {{ trace.method }} | {{ trace.url }}{% if profiler_token and profiler_link %} | Profile{% endif %} {% if trace.curlCommand is defined and trace.curlCommand %} | {% endif %} | 
|---|---|---|---|
| Request options | {{ profiler_dump(trace.options, maxDepth=1) }} | ||
| Response | {% if trace.http_code >= 500 %} {% set responseStatus = 'error' %} {% elseif trace.http_code >= 400 %} {% set responseStatus = 'warning' %} {% else %} {% set responseStatus = 'success' %} {% endif %} {{ trace.http_code }} {{ profiler_dump(trace.info, maxDepth=1) }}{% if profiler_token and profiler_link %} | {{ profiler_token }}{% endif %} | |