Shows how to install HTTP protocol interceptors, an easy handle to hook into HTTP request / response processing.
Usually protocol interceptors are expected to act upon one specific header or a group of related headers of the
incoming message, or populate the outgoing message with one specific header or a group of related headers. Protocol
interceptors can also manipulate content entities enclosed with messages - transparent content compression /
decompression being a good example. Usually this is accomplished by using the 'Decorator' pattern where a wrapper
entity class is used to decorate the original entity. Several protocol interceptors can be combined to form one
logical unit.
More
information.