tpl.http-request.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.HttpRequestAttachment" -->
<#if data.method??>${data.method}<#else>GET#if> to <#if data.url??>${data.url}<#else>Unknown#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>
<#if data.curl??>
Curl
${data.curl}
#if>