Skip to content

raphw/interceptable-http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interception extension for Java's HttpClient

This module adds a common feature of HTTP client implementations to Java 11's java.net.http.HttpClient:

  • Adding request decorators, to for example add or modify request headers.
  • Adding request interception, to for example collect request metrics.

The extension is straight-forward to use by simply replacing HttpClient.builder() by InterceptableHttpClient.builder(). The extended builder API is then capable of registering decorators and interceptors by the two additional build steps addDecorator and addInterceptor.

About

A wrapper API for creating interceptable Java HttpClients

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages