The Interceptor protocol is empty and is split into RequestInterceptor and ResponseInterceptor. My suggestion is to combine both API requirements into the Interceptor protocol and remove the other two protocols. An interceptor should be able to manage and manipulate the entire request response sequence. To avoid boilerplate code in user based application we could provide a default implementation or make the implementation of the methods optional.
The
Interceptor
protocol is empty and is split intoRequestInterceptor
andResponseInterceptor
. My suggestion is to combine both API requirements into theInterceptor
protocol and remove the other two protocols. An interceptor should be able to manage and manipulate the entire request response sequence. To avoid boilerplate code in user based application we could provide a default implementation or make the implementation of the methods optional.