Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

allure-httpclient

Apache HttpClient 4 interceptor integration for Allure Java.

Coordinates

io.qameta.allure:allure-httpclient

dependencies {
    testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
    testImplementation("io.qameta.allure:allure-httpclient")
}

Use

Register the request and response interceptors on an HttpClient 4 builder:

HttpClientBuilder.create()
        .addInterceptorFirst(new AllureHttpClientRequest())
        .addInterceptorLast(new AllureHttpClientResponse())
        .build();

Captured Data

  • Request method, URI, headers, and body when available.
  • Response status, headers, body, and timing.
  • A single structured HTTP exchange attachment.