WebDavClient constructor
WebDavClient(})
Creates a new WebDavClient
.
The httpClient
parameter specifies whether requests should attach a
CSRF-Token to sent requests.
Until Nextcloud 30 this is required to work around an authorization bug
triggered, when cookies are also sent.
Implementation
WebDavClient(
super.baseURL, {
http.Client? httpClient,
super.authentications,
bool useCSRFClient = true,
}) : super(
httpClient: useCSRFClient
? WebDavCSRFClient(
baseURL,
httpClient: httpClient,
)
: httpClient,
);