package:http should be recommended over dart:io's HttpClient #52023
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-io
type-documentation
A request to add or improve documentation
Page URL
https://api.dart.dev/stable/2.19.2/dart-io/HttpClient-class.html
Page source
No response
Describe the problem
We want to promote using
package:http
instead of theHttpClient
that is part ofdart:io
(see the plan)Expected fix
Ideally we would:
package:http
that:Client
implementation (maybe a feature table forIOClient
,cronet_http
,cupertino_http
,fetch_client
etc.)--dart-define=no_default_http_client=true
, etc.)package:http
with Flutter (e.g. don't useNetwork.image
)package:dio
?HttpClient
page to make it more clear that users should usepackage:http
HttpClient
in the library tourAdditional context
Relevant existing pages:
The text was updated successfully, but these errors were encountered: