Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorsCfg ¶
type CorsCfg struct { Enabled bool Credentials bool AllowedHeaders []string AllowedHosts []string AllowedMethods []string ExposedHeaders []string }
CorsCfg is the CORS config.
type NoSniffFileInfo ¶
NoSniffFileInfo wraps any generic FileInfo interface and bypasses mime type sniffing.
func (NoSniffFileInfo) ContentType ¶
func (w NoSniffFileInfo) ContentType(ctx context.Context) (contentType string, err error)
type User ¶
type User struct { Username string Password string Scope string Modify bool Rules []*Rule Handler *webdav.Handler }
User contains the settings of each user.
Click to show internal directories.
Click to hide internal directories.