voliva / angular2-interceptors

79 stars 20 forks source link

2.0.0 #19

Open thekalinga opened 7 years ago

thekalinga commented 7 years ago

I done a major refactoring that includes the following new features

  1. Ability to handle errors properly
  2. Ability for interceptors (in request, response, error, short circuit flows) complete the flow by skipping over the rest of the interceptor chain
  3. Ability to interceptors short circuit the flow, so that the response flow kicks in starting with the interceptor that asked for the short circuit
  4. Ability to perform retries on the real http.request(..) response observable; eg. usecase is OAuth2 flow

Please note that this is not a completed tested code.

Please review the changes & share your views

thekalinga commented 7 years ago

Once the changes are finalised, we can create a branch angular 4 for angular 4 version.

The artifact name for that branch can be ng4-http-interceptor