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-httpclient5/README.md at main · 00felix/allure-java

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
56 lines (39 loc) · 1.61 KB
/

README.md

Copy path

File metadata and controls

56 lines (39 loc) · 1.61 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

allure-httpclient5

Apache HttpClient 5 interceptor integration for Allure Java.

Use this module when your tests or test clients use Apache HttpClient 5 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 5.x.
  • The current build validates against Apache HttpClient 5.6.1.

Installation

Gradle:

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

Maven, with allure-bom imported in dependency management:

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

Setup

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

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

CloseableHttpClient client = HttpClientBuilder.create()
        .addRequestInterceptorFirst(new AllureHttpClient5Request())
        .addResponseInterceptorLast(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 decompressed body when available.
  • Response status, headers, body, and timing.
  • Redacted credentials and any custom redaction/truncation rules you configure.

Use allure-httpclient for Apache HttpClient 4.

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.