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>;Parameters
| Parameter | Type |
|---|---|
input | RequestInfo | URL |
init? | RequestInit |
Returns
Promise<Response>
Call Signature
ts
(input, init?): Promise<Response>;Parameters
| Parameter | Type |
|---|---|
input | string | Request | URL |
init? | RequestInit |
Returns
Promise<Response>