http: allow PROPOFIND http method

PROPOFIND is used by webdav to retrieve resource's properties.
http://www.webdav.org/specs/rfc4918.html#METHOD_PROPFIND

For example, Nextcloud public sharing uses PROPOFIND to list shared resources.
This commit is contained in:
Pierre Tachoire
2026-02-09 15:03:20 +01:00
parent 115530a104
commit b9f8ce5729
3 changed files with 7 additions and 1 deletions

View File

@@ -211,6 +211,7 @@ pub const Connection = struct {
.HEAD => "HEAD",
.OPTIONS => "OPTIONS",
.PATCH => "PATCH",
.PROPFIND => "PROPFIND",
};
try errorCheck(c.curl_easy_setopt(easy, c.CURLOPT_CUSTOMREQUEST, m.ptr));
}
@@ -342,6 +343,7 @@ pub const Method = enum(u8) {
HEAD = 4,
OPTIONS = 5,
PATCH = 6,
PROPFIND = 7,
};
// TODO: on BSD / Linux, we could just read the PEM file directly.