{% 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 %}

Request

{{ stack.clientRequest|httplug_markup|nl2br }}

Response

{{ stack.clientResponse|httplug_markup|nl2br }}
{% if stack.profiles %}
{% for profile in stack.profiles %}

{{ profile.plugin }}

Request

{{ profile.request|httplug_markup|nl2br }}

Response

{{ profile.response|httplug_markup|nl2br }}
{% if not loop.last %}
{% endif %} {% endfor %}
{% endif %}
{% for child in collector.childrenStacks(stack) %}
{% include '@Httplug/stack.html.twig' with { 'collector': collector, 'client': client, 'stack': child, 'id': id ~ '-' ~ loop.index } only %}
{% endfor %}