GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — allure-java/allure-httpclient at main · MohabMohie/allure-java

Expand file tree

/

allure-httpclient

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

allure-httpclient

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 

README.md

Outline

allure-httpclient

Apache HttpClient 4 interceptor integration for Allure Java.

Use this module when your tests or test clients use Apache HttpClient 4 and you want request and response details to appear in Allure Report.

Supported Versions

  • Allure Java 3.x requires Java 17 or newer.
  • This module targets Apache HttpClient 4.x.
  • The current build validates against Apache HttpClient 4.5.14.

Installation

Gradle:

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

Maven, with allure-bom imported in dependency management:

<dependency>
    <groupId>io.qameta.allure</groupId>
    <artifactId>allure-httpclient</artifactId>
    <scope>test</scope>
</dependency>

Setup

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

AllureHttpClientResponse responseInterceptor = new AllureHttpClientResponse()
        .configureHttpExchange(exchange -> exchange.redactHeader("Authorization"));

CloseableHttpClient client = HttpClientBuilder.create()
        .addInterceptorFirst(new AllureHttpClientRequest())
        .addInterceptorLast(responseInterceptor)
        .build();

Register both interceptors together so Allure can combine request and response data from the same exchange.

Report Output

  • Request method, URI, headers, and body when available.
  • Response status, headers, body, and timing.
  • Redacted credentials and any custom redaction/truncation rules you configure.

Use allure-httpclient5 for Apache HttpClient 5.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.