Apache HttpClient 4 interceptor integration for Allure Java.
io.qameta.allure:allure-httpclient
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-httpclient")
}Register the request and response interceptors on an HttpClient 4 builder:
HttpClientBuilder.create()
.addInterceptorFirst(new AllureHttpClientRequest())
.addInterceptorLast(new AllureHttpClientResponse())
.build();- Request method, URI, headers, and body when available.
- Response status, headers, body, and timing.
- A single structured HTTP exchange attachment.