HttpClient class abstract

Constructors

HttpClient(Uri address)

Properties

address Uri
final
hashCode int
The hash code for this object.
no setterinherited
isHttp2 bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(HttpRequest httpRequest) Future<HttpResponse>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

autodetect(Uri address, {SecurityContext? securityContext, bool onBadCertificate(X509Certificate certificate)?, Duration? timeout}) Future<HttpClient>
http11(Uri address, {SecurityContext? securityContext}) Future<HttpClient>
http2(Uri address, {SecurityContext? securityContext, bool onBadCertificate(X509Certificate certificate)?, Duration? timeout}) Future<HttpClient>