You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow adding caching, otel etc without needing more changes to the openid crate. One pattern I quite like is to define a trait that specifies only what you actually use from reqwest, and then users can implement that themselves as needed.
The text was updated successfully, but these errors were encountered:
If it could be implemented with feature guard, I am not against it. Oops, I understood, that this will allow to change behavior, which we should not allow.
It would be interesting to know, why original reqwest does not have it?
One thing we can probably have is to have tracing feature to add tracing crate integration.
Oops, I understood, that this will allow to change behavior, which we should not allow.
I'm not sure what you mean here, since if someone really wants to change behaviour they can just replace the entire reqwest crate dependency you have with a custom implementation. In terms of spec compliance, having middleware on an HTTP client is perhaps a risk, but a fairly small one.
I can't answer why reqwest itself doesn't support middleware, but it doesn't, so there is that.
This would allow adding caching, otel etc without needing more changes to the openid crate. One pattern I quite like is to define a trait that specifies only what you actually use from reqwest, and then users can implement that themselves as needed.
The text was updated successfully, but these errors were encountered: