Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manjunathg88/typed-http-client

HttpClient instance, which might have been decorated with some resilient strategy against transient failure and with some default values. You might even receive a client where the BaseUrl is already set. So, this approach can be particularly useful if you need to hide a REST API client behind a strongly-typed service layer.
https://github.com/manjunathg88/typed-http-client

asp-net-core csharp-core dot-net-core dot-net-web-api dotnet-core dotnetcore http-client http-client-factory http-client-helper http-client-implementation http-requests httpclient httpclientfactory named-http-client typed-http-client typedhttpclient

Last synced: 5 days ago
JSON representation

HttpClient instance, which might have been decorated with some resilient strategy against transient failure and with some default values. You might even receive a client where the BaseUrl is already set. So, this approach can be particularly useful if you need to hide a REST API client behind a strongly-typed service layer.

Awesome Lists containing this project

README

        

# TypeHttpClient
HttpClient instance, which might have been decorated with some resilient strategy against transient failure and with some default values. You might even receive a client where the BaseUrl is already set. So, this approach can be particularly useful if you need to hide a REST API client behind a strongly typed service layer.

This solution has 2 projects

#TypedHttpClient - .Net Class Library
Contains the typed http client library.

#HogwartsAPI - ASP.NET Core Web API
Contains web api project which makes use of TypedHttpClient library to make http requests. Dependency injection for the TypedHttpClient is performed under Program.cs file.