W3cubDocs

/Dart 2

createHttpClient method

HttpClient createHttpClient (SecurityContext context)

Returns a new HttpClient using the given context.

When this override is installed, this function overrides the behavior of new HttpClient.

Implementation

HttpClient createHttpClient(SecurityContext context) {
  return new _HttpClient(context);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-io/HttpOverrides/createHttpClient.html