ModernHttpClient | HttpClient implementations that use platform | HTTP Client library

 by   anaisbetts C# Version: 2.4.2 License: MIT

kandi X-RAY | ModernHttpClient Summary

kandi X-RAY | ModernHttpClient Summary

ModernHttpClient is a C# library typically used in Utilities, HTTP Client applications. ModernHttpClient has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

HttpClient implementations that use platform-native HTTP clients for :rocket:
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ModernHttpClient has a low active ecosystem.
              It has 655 star(s) with 271 fork(s). There are 70 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 74 open issues and 95 have been closed. On average issues are closed in 74 days. There are 16 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of ModernHttpClient is 2.4.2

            kandi-Quality Quality

              ModernHttpClient has 0 bugs and 0 code smells.

            kandi-Security Security

              ModernHttpClient has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ModernHttpClient code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ModernHttpClient is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              ModernHttpClient releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.
              ModernHttpClient saves you 15 person hours of effort in developing the same functionality from scratch.
              It has 42 lines of code, 0 functions and 38 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ModernHttpClient
            Get all kandi verified functions for this library.

            ModernHttpClient Key Features

            No Key Features are available at this moment for ModernHttpClient.

            ModernHttpClient Examples and Code Snippets

            No Code Snippets are available at this moment for ModernHttpClient.

            Community Discussions

            QUESTION

            Random System.TypeLoadException
            Asked 2021-Apr-16 at 10:01

            I'm building an Xamarin Android app with latest Visual Studio 2019 updates. On some devices I get some exceptions that I don't understand, because on most of the devices it seems to be fine.

            Exception 1:

            ...

            ANSWER

            Answered 2021-Apr-16 at 10:01

            I could solve this issue by enabling "Bundle assemblies into native code" under "Android Options" in project properties, hopefully.

            Source https://stackoverflow.com/questions/67003216

            QUESTION

            Why does Xamarin Android fails to send GRPC/Http2 requests?
            Asked 2020-Feb-23 at 18:43

            I'm trying to run the xamarin forms sample from the Dot net conf 2019 keynote. I've hosted the grpc service and a .net core console application can get data from it without any issues. But when running the xamarin app, the ALPN negotiation(Client hello) happens with http 1.1 and therefore the grpc call fails. Source code available here

            Error message: Grpc.Core.RpcException: Status(StatusCode=Internal, Detail="Bad gRPC response. Response protocol downgraded to HTTP/1.1."

            Debugger reveals that the SocketsHttpHandler used underneath on xamarin does not have the code that support Http 2.

            Questions:

            1. Apparently Xamarin supports Grpc and Http. Why does this fail? Given that my suspect is correct, so that the issue is because xamarin uses an old version of System.Net.Http.dll that doesn't support Http2.
            2. How to make sure Xamarin uses correct runtime assemblies that support Http2?
            3. If this works for someone, Can you please share the system configuration?

            Configuration

            Use shared runtime: true
            Mono shared runtime version (as seen on android device): 10.1.0-18.
            Visual studio 2019 on windows 10:
            Xamarin.Android SDK 10.1.4.0 (d16-4/e44d1ae)
            Xamarin.Android Reference Assemblies and MSBuild support.
            Mono: fd9f379
            Java.Interop: xamarin/java.interop/d16-4@c4e569f
            Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-5@9f4ed4b

            Things I tried:

            1. Switch to Managed HttpClient implementation /NativeMessageHandler from ModernHttpClient. Still fails with same error. (Because ALPN negotiation still uses same code?)
            2. Send a HttpRequestMessage with Version 2 on a new HttpClient. Still the underlying handler is the same. So it fails to negotiate Http2.
            3. Disable shared runtime. Didn't work.

            On .net core console app HttpConnectionSettings used by the SocketsHttpHandler has http2 supporting code:

            But on xamarin it doesn't. AndroidClientHandler is selected, but t delegates to the SocketsHttpHandler. It's settings doesn't have the http2 support:

            ...

            ANSWER

            Answered 2020-Feb-23 at 18:43

            I make it work your provided solution. Sorry i didnt cover exact details why your way didnt worked and this one worked. Also i couldn't test iOs version.

            Server. I changed only port version. I used release version. Btw I am not sure how successfully you could run Http1AndHttp2 and same ip and port. I had issues on personal project.

            Mobile Added Grpc.Core and Grpc.Core.Api nugets to both projects.

            I am creating channel differently. Your solution version

            Source https://stackoverflow.com/questions/60360430

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ModernHttpClient

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular HTTP Client Libraries

            retrofit

            by square

            guzzle

            by guzzle

            vue-resource

            by pagekit

            Flurl

            by tmenier

            httplug

            by php-http

            Try Top Libraries by anaisbetts

            SassAndCoffee

            by anaisbettsJavaScript

            starter-mobile

            by anaisbettsC#

            spawn-rx

            by anaisbettsTypeScript

            xvfb-maybe

            by anaisbettsJavaScript

            LinqToAwait

            by anaisbettsC#