Skip to content

TypeScript API / laikacms/storage/webdav / WebDavConfig

Interface: WebDavConfig ​

Configuration for a WebDavDataSource.

Properties ​

auth? ​

ts
readonly optional auth?: WebDavAuth;

Optional credentials. Anonymous when omitted.


basePath? ​

ts
readonly optional basePath?: string;

Optional subpath under baseUrl treated as the root (e.g. content).


baseUrl ​

ts
readonly baseUrl: string;

Absolute URL of the WebDAV collection that becomes the storage root, e.g. https://dav.example.com/remote.php/dav/files/alice. A trailing slash is optional.


fetch? ​

ts
readonly optional fetch?: {
  (input, init?): Promise<Response>;
  (input, init?): Promise<Response>;
};

fetch implementation override — handy for tests and non-standard runtimes.

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
ParameterType
inputRequestInfo | URL
init?RequestInit
Returns ​

Promise<Response>

Call Signature ​

ts
(input, init?): Promise<Response>;

MDN Reference

Parameters ​
ParameterType
inputstring | Request | URL
init?RequestInit
Returns ​

Promise<Response>

Released under the MIT License.