fetch with body

This commit is contained in:
Karl Seguin
2025-12-04 16:10:56 +08:00
parent aa3a402f70
commit ff9f9bae1d
3 changed files with 27 additions and 12 deletions

View File

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