proofpoint/platform — pull request #98 by electrum (2012-05-05 00:18:05+00:00)
Title: Add request filter support to HttpClient

This adds support for modifying requests via a user specified set of filters. This is accomplished via a new binding helper:

httpClientBinder(binder).bindHttpClient("foo", FooClient.class)
.withFilter(FirstFilter.class)
.withFilter(SecondFilter.class);

The driving use case here is for adding the trace token on outgoing requests. The binder has a simple way to do this:

httpClientBinder(binder).bindHttpClient("foo", FooClient.class).withTracing();