WebDavStdClient class

Implemented types

Constructors

WebDavStdClient([SecurityContext? context])
Creates a client using SDK-managed HTTP transport and authentication.
WebDavStdClient.authenticated({required WebDavAuthenticationConfig authentication, HttpClient? client, Future<ConnectionTask<Socket>> connectionFactory(Uri uri, String? proxyHost, int? proxyPort)?})
Creates a native WebDAV client with scoped Basic or Digest authentication.
WebDavStdClient.withClient(HttpClient client)
Creates a client using an existing HttpClient, including its SDK authentication, proxy and TLS settings.

Properties

client ↔ HttpClient
latefinal
closed → bool
Checks whether this client is closed.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCredentials(Uri url, String realm, HttpClientCredentials credentials) → void
Add credentials to be used for authorizing requests.
override
addProxyCredentials(String host, int port, String realm, HttpClientCredentials credentials) → void
Add credentials to be used for authorizing proxies.
override
close({bool force = false}) → void
Close connection
override
dispatch(Uri from, {ResponseBodyDecoderManager? responseBodyDecoders, ResponseResultParser<WebDavStdResResultView>? responseResultParser}) → WebDavStdRequestDispatcher
Creates a WebDavStdRequestDispatcher for handling WebDAV requests.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openUrl<P extends WebDavRequestParam>({required WebDavMethod method, required Uri url, required P param, ResponseBodyDecoderManager? responseBodyDecoders, ResponseResultParser<WebDavStdResResultView>? responseResultParser}) → Future<WebDavStdRequest<P>>
Opens a WebDAV connection.
override
setAuthenticate(Future<bool> f(Uri url, String scheme, String? realm)?) → void
Sets the function to be called when a site is requesting authentication.
override
setAuthenticateProxy(Future<bool> f(String host, int port, String scheme, String? realm)?) → void
Sets the function to be called when a proxy is requesting authentication.
override
toString() → String
A string representation of this object.
inherited

Operators

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