Skip to content

Commit e729333

Browse files
committed
http.client: document PATCH requests
1 parent 283d8b4 commit e729333

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

basis/http/client/client-docs.factor

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@ ARTICLE: "http.client.head" "HEAD requests with the HTTP client"
209209
<head-request>
210210
} ;
211211

212+
ARTICLE: "http.client.patch" "PATCH requests with the HTTP client"
213+
"Basic usage involves passing post data and a " { $link url } ", and getting a " { $link response } " and data back:"
214+
{ $subsections http-patch http-patch* }
215+
"Advanced usage involves constructing a " { $link request } ", which allows " { $link "http.cookies" } " and " { $link "http.headers" } " to be set:"
216+
{ $subsections <patch-request> }
217+
"Both words take a post data parameter; see " { $link "http.client.post-data" } "." ;
218+
212219
ARTICLE: "http.client.delete" "DELETE requests with the HTTP client"
213220
"Basic usage involves passing a " { $link url } " and getting a " { $link response } " and data back:"
214221
{ $subsections http-delete http-delete* }
@@ -261,14 +268,15 @@ $nl
261268
"http.client.post"
262269
"http.client.put"
263270
}
264-
"Submission data for POST and PUT requests:"
271+
"Submission data for POST, PUT, and PATCH requests:"
265272
{ $subsections "http.client.post-data" }
266273
"Other HTTP methods are also supported:"
267274
{ $subsections
268275
"http.client.head"
269276
"http.client.delete"
270277
"http.client.options"
271278
"http.client.trace"
279+
"http.client.patch"
272280
}
273281
"More esoteric use-cases, for example HTTP methods other than the above, are accommodated by constructing an empty request object with " { $link <request> } " and filling everything in by hand."
274282
{ $subsections

0 commit comments

Comments
 (0)