docs to redirect a user to dart:io.HttpClientOverrides (#13465)

This commit is contained in:
Seth Ladd 2017-12-08 15:34:37 -08:00 committed by GitHub
parent aedee0df3d
commit 33c66335a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,10 @@
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
/// Create a new [http.Client] object. /// (Deprecated, use [dart:io.HttpClientOverrides]) Create a new [http.Client] object.
///
/// We recommend [dart:io.HttpClientOverrides] instead of this function. Flutter
/// will soon use [dart:io.HttpClient].
/// ///
/// This can be set to a new function to override the default logic for creating /// This can be set to a new function to override the default logic for creating
/// HTTP clients, for example so that all logic in the framework that triggers /// HTTP clients, for example so that all logic in the framework that triggers