HttpProtocol(Uri uri, {bool acceptBadCertificate = false}) : super(uri) { _ioClient = createHttpClient(acceptBadCertificate: acceptBadCertificate); }