kouks / awi

Versatile, modern and lightweight http client based on promises.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Interceptor priority

kouks opened this issue · comments

We need to introduce interceptor priority for both requests and responses. This would probably be an optional argument in the use method.

Open for suggestions.

Introduced with a number type, could be improved, I'll leave this open

Consider solving this by passing a next reference to the interceptor. Typing await next() would execute the interceptor after the request.