{% if stack.failed %} {% else %} {% endif %} {{ stack.requestMethod }}
{{ stack.requestScheme }}:// {{ stack.requestHost }} {{ stack.requestTarget }}
{{ stack.duration|number_format }} ms {% if stack.responseCode >= 400 and stack.responseCode <= 599 %} {{ stack.responseCode }} {% elseif stack.responseCode >= 300 and stack.responseCode <= 399 %} {{ stack.responseCode }} {% else %} {{ stack.responseCode }} {% endif %}
{{ include('@Httplug/http_message.html.twig', { data: stack.clientRequest, header: 'Request' }, with_context=false) }}
{{ include('@Httplug/http_message.html.twig', { data: stack.clientResponse, header: 'Response' }, with_context=false) }}
{% if stack.profiles %}
{% for profile in stack.profiles %}

{{ profile.plugin }}

{{ include('@Httplug/http_message.html.twig', { data: profile.request, header: 'Request' }, with_context=false) }}
{{ include('@Httplug/http_message.html.twig', { data: profile.response, header: 'Response' }, with_context=false) }}
{% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}
{% for child in collector.childrenStacks(stack) %}
{{ include('@Httplug/stack.html.twig', { 'collector': collector, 'client': client, 'stack': child, 'id': id ~ '-' ~ loop.index }, with_context=false) }}
{% endfor %}