Documentation
¶
Overview ¶
Package webdav implements a WebDAV server handler module for Caddy.
Derived from work by Henrique Dias: https://github.com/hacdias/caddy-webdav
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebDAV ¶
type WebDAV struct {
// The root directory out of which to serve files. If
// not specified, `{http.vars.root}` will be used if
// set; otherwise, the current directory is assumed.
// Accepts placeholders.
Root string `json:"root,omitempty"`
// The base path prefix used to access the WebDAV share.
// Should be used if one more more matchers are used with the
// webdav directive and it's needed to let the webdav share know
// what the request base path will be.
// For example:
// webdav /some/path/match/* {
// prefix /some/path/match
// ...
// }
// Accepts placeholders.
Prefix string `json:"prefix,omitempty"`
// contains filtered or unexported fields
}
WebDAV implements an HTTP handler for responding to WebDAV clients.
func (WebDAV) CaddyModule ¶
func (WebDAV) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
Click to show internal directories.
Click to hide internal directories.