Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SabredavBadRequest maps to HTTP 400 SabredavBadRequest code = iota // SabredavMethodNotAllowed maps to HTTP 405 SabredavMethodNotAllowed // SabredavNotAuthenticated maps to HTTP 401 SabredavNotAuthenticated // SabredavPreconditionFailed maps to HTTP 412 SabredavPreconditionFailed // SabredavPermissionDenied maps to HTTP 403 SabredavPermissionDenied // SabredavNotFound maps to HTTP 404 SabredavNotFound // SabredavConflict maps to HTTP 409 SabredavConflict )
Variables ¶
This section is empty.
Functions ¶
func HandleWebdavError ¶
func HandleWebdavError(w http.ResponseWriter, b []byte, err error)
func IsWebdavRequest ¶
This is a non exhaustive way to detect if a request is directed to a webdav server. This naïve implementation only deals with the set of methods exclusive to WebDAV. Since WebDAV is a superset of HTTP, GET, POST and so on are valid methods, but this implementation would require a larger effort than we can build upon in this file. This is needed because the proxy might need to create a response with a webdav body; such as unauthorized.
Types ¶
Click to show internal directories.
Click to hide internal directories.