JamitLabs / Jetworking

A multi-module library providing a user-friendly interface for common networking tasks
https://JamitLabs.github.io/Jetworking/
MIT License
4 stars 3 forks source link

Removing redundant protocols #63

Closed mrylmz closed 3 years ago

mrylmz commented 3 years ago

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.