createHttp function

HttpRequestImpl createHttp({
  1. bool allowAutoSignedCert = true,
  2. List<TrustedCertificate>? trustedCertificates,
  3. bool withCredentials = false,
  4. String findProxy(
    1. Uri url
    )?,
})

Implementation

HttpRequestImpl createHttp({
  bool allowAutoSignedCert = true,
  List<TrustedCertificate>? trustedCertificates,
  bool withCredentials = false,
  String Function(Uri url)? findProxy,
}) {
  return HttpRequestImpl(
    allowAutoSignedCert: allowAutoSignedCert,
    trustedCertificates: trustedCertificates,
    withCredentials: withCredentials,
    findProxy: findProxy,
  );
}