Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/manjunathg88/typed-http-client
- Owner: manjunathg88
- Created: 2024-01-09T18:33:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-11T21:22:33.000Z (12 months ago)
- Last Synced: 2024-12-28T09:49:11.602Z (13 days ago)
- Topics: 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
- Language: C#
- Homepage:
- Size: 1.15 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.