Versions in this module Expand all Collapse all v4 v4.2.0 Jan 18, 2022 Changes in this version type Config + Debug bool v4.1.1 Oct 19, 2021 Changes in this version + type Config struct + Auth bool + Cors CorsCfg + LogFormat string + NoSniff bool + Users map[string]*User + func (c *Config) ServeHTTP(w http.ResponseWriter, r *http.Request) + type CorsCfg struct + AllowedHeaders []string + AllowedHosts []string + AllowedMethods []string + Credentials bool + Enabled bool + ExposedHeaders []string + type NoSniffFileInfo struct + func (w NoSniffFileInfo) ContentType(ctx context.Context) (contentType string, err error) + type Rule struct + Allow bool + Modify bool + Path string + Regex bool + Regexp *regexp.Regexp + type User struct + Handler *webdav.Handler + Modify bool + Password string + Rules []*Rule + Scope string + Username string + func (u User) Allowed(url string, noModification bool) bool + type WebDavDir struct + NoSniff bool + func (d WebDavDir) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error) + func (d WebDavDir) Stat(ctx context.Context, name string) (os.FileInfo, error) + type WebDavFile struct + func (f WebDavFile) Readdir(count int) (fis []os.FileInfo, err error) + func (f WebDavFile) Stat() (os.FileInfo, error) Other modules containing this package github.com/hacdias/webdav/v3