Apache HttpClient 5 interceptor integration for Allure Java.
io.qameta.allure:allure-httpclient5
dependencies {
testImplementation(platform("io.qameta.allure:allure-bom:<allure-version>"))
testImplementation("io.qameta.allure:allure-httpclient5")
}Register the request and response interceptors on an HttpClient 5 builder:
HttpClientBuilder.create()
.addRequestInterceptorFirst(new AllureHttpClient5Request())
.addResponseInterceptorLast(new AllureHttpClient5Response())
.build();- Request method, URI, headers, and decompressed body when available.
- Response status, headers, body, and timing.
- A single structured HTTP exchange attachment.
- Use
allure-httpclientfor Apache HttpClient 4. - Register both interceptors together to produce a complete request/response exchange.