.NET Rest Client Frameworks

后端 未结 6 2034
执笔经年
执笔经年 2021-01-01 22:42

I\'m looking for the best .NET C# framework for building a REST Http client. My requirements are as follows:

  • Unit testable (mockable)
  • Supports multi-p
相关标签:
6条回答
  • 2021-01-01 23:06

    There is also RestSharp. I've inherited it on some projects and haven't fully explored it myself, so I'm afraid I cannot say if it meets your requirements.

    The developer of RestSharp is active in the .Net community, so if the published documentation doesn't cover something I would say there is a good chance of getting some assistance.

    0 讨论(0)
  • 2021-01-01 23:06

    Also take a look at the Microsoft.Http client in http://wcf.codeplex.com/ It will be included in future versions of the framework. It is relatively easy to unit test with.

    0 讨论(0)
  • 2021-01-01 23:11

    You can also take a look to Spring.Rest client Framework : http://springframework.net/index.html#spring-rest-1.0.0-released

    0 讨论(0)
  • 2021-01-01 23:14

    Check the Flurl library https://flurl.dev/ Flurl is available on NuGet and is free for commercial use. It runs on a wide variety of platforms, including .NET Framework, .NET Core, Xamarin, and UWP.

    0 讨论(0)
  • 2021-01-01 23:15

    I have just submitted a patch for the aforementioned problem with mocking file uploads using Hammock and has been accepted into the trunk. See issue 13 for more details.

    0 讨论(0)
  • 2021-01-01 23:15

    Microsoft HTTP Client Libraries is good option to consider.

    Nuget URL - https://www.nuget.org/packages/Microsoft.Net.Http/

    0 讨论(0)
提交回复
热议问题