none
C# Client for making HTTP/2 REST calls RRS feed

  • Question

  • Is there a specific HTTP/2 Client library in .NET to be used to make REST API calls to an HTTP/2 server? Assume the server can be built on any platform and supports HTTP/2.

    Iif it exists, is there a certain minimum .net framework version and and OS Version requirement to use such a client library?

    All I could find was HttpTwo by Jonathan Dick(now works with Microsoft) and 

    https://github.com/MSOpenTech/HTTP-SPEED-PLUS-MOBILITY

    The first one is incomplete and the second one was last checked in 3 years ago. Both don't seem production ready.

    I cant find any documentation or sample code for such a simple thing. Seems everyone is doing there own thing with Google implementing some gRPC etc.

    Or is it already there and I just can find it?

    Thursday, August 18, 2016 7:08 PM

Answers

  • Hi Abhishek.Tiwari,

    Based on my search. In .NET Framework 4.6.0 Microsoft announced supported for HTTP/S. So the .NET Framework 4.6.0 & 4.6.1 supports HTTP/2.

    For more details, please see http://www.c-sharpcorner.com/UploadFile/efa3cf/creating-http2-supported-website-with-Asp-Net-core-hostin/

    Now you create an ASP.NET Core 1.0 web application which will support HTTP/2 in Windows 10.

    Configure IIS to support HTTP/2.

     

    Here is similar solution for how do I use HTTP/2.  I hope the article will help you.

    Best Regards,

    Hart


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Friday, August 19, 2016 8:09 AM

All replies

  • Hi Abhishek.Tiwari,

    Based on my search. In .NET Framework 4.6.0 Microsoft announced supported for HTTP/S. So the .NET Framework 4.6.0 & 4.6.1 supports HTTP/2.

    For more details, please see http://www.c-sharpcorner.com/UploadFile/efa3cf/creating-http2-supported-website-with-Asp-Net-core-hostin/

    Now you create an ASP.NET Core 1.0 web application which will support HTTP/2 in Windows 10.

    Configure IIS to support HTTP/2.

     

    Here is similar solution for how do I use HTTP/2.  I hope the article will help you.

    Best Regards,

    Hart


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    Friday, August 19, 2016 8:09 AM
  • This absolutely does not answer the question by any possible stretch of the imagination.

    The question was if there are any .NET clients which support http/2, not whether there are any .NET server implementations which support http/2. Microsoft has made it quite clear that http/2 server support exists. That's not what the question is about.

    There are no built-in .NET clients which support http/2 at this time, unless they are undocumented. Some people have had luck using WinHttpHandler with HttpClient, but I have found it impossible to use. The only realistic option for the time being appears to be finding a 3rd party http2 client library. So no, there is no http/2 client support in .NET.

    • Proposed as answer by HerbF Wednesday, May 1, 2019 7:07 PM
    Wednesday, November 22, 2017 9:04 PM