]> gitweb.factorcode.org Git - factor.git/commitdiff
http.client: fix docs for http-patch accepting a body
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 5 Mar 2023 14:14:39 +0000 (08:14 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 5 Mar 2023 14:14:39 +0000 (08:14 -0600)
basis/http/client/client-docs.factor

index d0645ee88dd81537aa2b51a2bc02cdfaa59b1fb6..4218982488d0554c757e438d1732f833ff0b0382 100644 (file)
@@ -125,12 +125,12 @@ HELP: http-options*
 { http-options http-options* } related-words
 
 HELP: http-patch
-{ $values { "url" { $or url string } } { "response" response } { "data" sequence } }
+{ $values { "patch-data" object } { "url" { $or url string } } { "response" response } { "data" sequence } }
 { $description "Submits an HTTP PATCH request." }
 { $errors "Throws an error if the HTTP request fails." } ;
 
 HELP: http-patch*
-{ $values { "url" { $or url string } } { "response" response } { "data" sequence } }
+{ $values { "patch-data" object } { "url" { $or url string } } { "response" response } { "data" sequence } }
 { $description "Submits an HTTP PATCH request, but does not check the HTTP response code for success." } ;
 
 { http-patch http-patch* } related-words