Series: Refit

3 posts in this series

Series: Refit

Building type-safe HTTP clients in .NET with Refit, including bearer authentication and logging HTTP traffic.

  1. Refit
    December 05, 2023

    Refit turns a C# interface into a typed, injectable HTTP client. Set one up in a .NET worker service, define routes, and inspect responses with ApiResponse<T>.

  2. Refit
    December 11, 2023

    Log HTTP requests and responses from a Refit client in .NET with a custom DelegatingHandler, and be careful which details you write to your logs.

  3. Refit
    December 19, 2023

    Add bearer token authentication to a Refit client in .NET, including the step most examples skip: actually obtaining the token through dependency injection.