{% import '@CsaGuzzle/Calls/macros.html.twig' as macros %}
{% for call in calls %}
{{ call.request.method }} {% if call.request.method == 'GET' %} {{ call.uri }} {% else %} {{ call.uri }} {% endif %} {% set statusCode = call.httpCode %} {{ statusCode }} - {{ call.response is defined ? call.response.reasonPhrase : 'Unknown error' }} {% if call.cache is defined %}Cache {{ call.cache }}{% endif %}

Request

{{ macros.render_infos(call.info) }} {{ macros.render_headers(call.request.headers, call.uri) }} {{ macros.render_body(call.request.body) }}
{% if call.response is defined %}

Response

{{ macros.render_headers(call.response.headers, call.uri) }} {{ macros.render_body(call.response.body) }}
{% endif %}
{% endfor %}