This document contains documentation for the
tracee-httpclient
module. Check the TracEE main documentation to get started.
TODO Wrapper for apache http client 3
Add the tracee-httpclient
module to your pom.xml
dependencies:
<dependencies>
...
<dependency>
<groupId>io.tracee.binding</groupId>
<artifactId>tracee-httpclient</artifactId>
<version>${tracee.version}</version>
</dependency>
...
</dependencies>
Then simply replace the pure instantiation of the HttpClient in your code with:
final HttpClient client = new HttpClient();
with the TraceeHttpClientDecorator
:
final HttpClient client = TraceeHttpClientDecorator.wrap(new HttpClient());