jhomlala/alice

[FEATURE] Connect with http_interceptor: library

II11II opened this issue · 3 comments

There is a popular interceptor for http library https://github.com/CodingAleCR/http_interceptor
Please add a feature to intercept requests with http_interceptor library.

P.s. I've seen an example and it violates SOLID principles (No DI for http library)

@II11II http_interceptor is only an interceptor for Dart's http library which is supported in Alice. Why should I add support for library which simply intercepts requests/responses rather than sending it? Alice provides support for libraries which are http clients.

P.s. I've seen an example and it violates SOLID principles (No DI for http library)
This is example app which shows how to use Alice in the easiest way. There's no purpose of architecting example app with SOLID principles since it's only showcase of features.

@II11II http_interceptor is only an interceptor for Dart's http library which is supported in Alice. Why should I add support for library which simply intercepts requests/responses rather than sending it? Alice provides support for libraries which are http clients.

P.s. I've seen an example and it violates SOLID principles (No DI for http library)
This is example app which shows how to use Alice in the easiest way. There's no purpose of architecting example app with SOLID principles since it's only showcase of features.

Can you add a method onHttpBaseRequest(BaseRequest request,{dynamic body}) ?
BaseRequest is class in HTTP library.

And give please access to fill your AliceHttpRequest class creating method in the Alice class

@II11II I'm sorry but I don't understand your request. Can you elaborate it?