Skip to Content
DocumentationApache HttpClient Interceptor

Apache HttpClient Interceptor

Installation

implementation group: 'dev.jora.postman4j', name: 'hc5-interceptor', version: '0.0.4'

Usage

Example of instrumenting a custom function in your Java code:

@UsePostmanCollection("My Test Collection") @UsePostmanFolderPath("Folder #1") @UsePostmanRequest("My Request") @UsePostmanResponse("My Response") public static void executeRequest(CloseableHttpClient httpClient, HttpUriRequestBase request) throws IOException { try (CloseableHttpResponse response = httpClient.execute(request)) { System.out.println(response.getCode()); } }

Example of a generated collection:

Generated Collection

Last updated on