http icon indicating copy to clipboard operation
http copied to clipboard

Add a `http.Client` compatible client

Open escamoteur opened this issue 1 year ago • 1 comments

With the introduction of the cupertino_http and cronet_http only Windows and Linux Dart and Flutter apps can't use the benefits of HTTP2 while staying compatible with he abstract http.Client interface. So it would be nice if this was added to this package.

escamoteur avatar Jul 12 '24 09:07 escamoteur

Maybe it would make sense for someone to update package:flutter_curl (or create a new curl-based package) to support the package:http Client interface?

Or use package:rhttp.

brianquinlan avatar Oct 21 '24 17:10 brianquinlan

Why? isn't the http2 package no longer maintained?

escamoteur avatar May 12 '25 18:05 escamoteur

I replied to this 7 months ago but I suspect that either I read "HTTP2" as "HTTP3" or I was thinking that people would want the benefits of HTTP3 (which package:http2 does not have).

brianquinlan avatar May 12 '25 19:05 brianquinlan

Sorry, I missed that reply :-) I guess my main point was that we should make sure that Dart devs on windows are not stuck on Http1 from dart:io and should be able to write Portable code that's why I asked for an implementation of the portable Client interface

escamoteur avatar May 12 '25 20:05 escamoteur