tmenier / Flurl

Fluent URL builder and testable HTTP client for .NET
https://flurl.dev
MIT License
4.23k stars 387 forks source link

Is there a global filter on Flurl.Http? #701

Closed CeSun closed 2 years ago

CeSun commented 2 years ago

I use it in Blazor and want to add the Token parameter in the request filter, and handle the error code in the response filter.

tmenier commented 2 years ago

You probably want to use global event handlers for this sort of thing. If you need a more detailed answer, please post a more detailed question to Stack Overflow. An example of doing the same with HttpClient that you'd like to do with Flurl would probably be helpful.