Provide a canonical base io.HttpClient implementation to use for HttpOverrides #40519
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-io
type-enhancement
A request for a change that isn't a bug
Filed on behalf of an internal customer.
dart:io provides a mechanism to swap the implementation of HTTP used by all components in a program with HttpOverrides mechanism.
Real world dart programs resort to this mechanism in several situations:
Trying to implement HttpClient from scratch is pretty tricky:
Proposal:
dart:io should provide some kind of BaseHttpClient implementing HttpClient and allowing users to implement only the transport mechanism. This could be similar to package:http.BaseClient.
@zichangg
The text was updated successfully, but these errors were encountered: