Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality. Learn more →
Top 10 C# HTTPclient Projects
-
WebApiClient
An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously.
-
mockhttp
Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Moq.Contrib.HttpClient
A set of extension methods for mocking HttpClient and IHttpClientFactory with Moq.
-
HttpClientCodeGenerator
HttpClientGenerator is a tool that uses the Roslyn code generator feature to write boilerplate HttpClient code for you.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Lib.Net.Http.EncryptedContentEncoding
Lib.Net.Http.EncryptedContentEncoding is a library which adds Encrypted Content-Encoding (aes128gcm) support to HttpClient
I'd say that without wanting to refactor the code a little bit (maybe moving those HttpClients into a service so that they are easily mocked) your best bet would be to use something like WireMock or MockHttp.
C# HTTPclient related posts
- Mock heavy tests
- I created a simpler RestSharp alternative, SimpleHttpClient
- How to write tests for HttpClient using Moq
- Help: how to memory-host & test a unit-test controller/service?
- Moq Setup
- RestClient.Net 5.0.x Beta Released
-
A note from our sponsor - InfluxDB
www.influxdata.com | 25 Apr 2024
Index
What are some of the best open-source HTTPclient projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | WebApiClient | 2,004 |
2 | mockhttp | 1,544 |
3 | httpclient-interception | 332 |
4 | Tiny.RestClient | 205 |
5 | Moq.Contrib.HttpClient | 184 |
6 | Cashew | 83 |
7 | HttpClientCodeGenerator | 45 |
8 | HttpRecorder | 25 |
9 | System.Net.Http | 15 |
10 | Lib.Net.Http.EncryptedContentEncoding | 7 |
Sponsored