tpl.http-response.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-attachments Show documentation
Show all versions of allure-attachments Show documentation
Module allure-attachments of Allure Framework.
<#ftl output_format="HTML">
<#-- @ftlvariable name="data" type="io.qameta.allure.attachment.http.HttpResponseAttachment" -->
Status code <#if data.responseCode??>${data.responseCode} <#else>Unknown#if>
<#if data.url??>${data.url}#if>
<#if data.body??>
Body
<#t>${data.body}
#if>
<#if (data.headers)?has_content>
Headers
<#list data.headers as name, value>
${name}: ${value!"null"}
#list>
#if>
<#if (data.cookies)?has_content>
Cookies
<#list data.cookies as name, value>
${name}: ${value!"null"}
#list>
#if>