]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/http/server/server-docs.factor
http.server: Implement DELETE, PATCH; handle unknown methods
[factor.git] / basis / http / server / server-docs.factor
index a3a24c462f777b6707235b6e98a4e399ae7c7ce5..9b8d4d7bbbd9f13f4b1ebe7bd901dc2e08e75a33 100644 (file)
@@ -34,7 +34,11 @@ HELP: main-responder
 
 HELP: post-request?
 { $values { "?" boolean } }
-{ $description "Outputs if the current request is a POST request.s" } ;
+{ $description "Outputs if the current request is a POST request." } ;
+
+HELP: method=
+{ $values { "str" "a string" } { "?" boolean } }
+{ $description "Outputs if the current request matches the expected method." } ;
 
 HELP: responder-nesting
 { $description "A sequence of " { $snippet "{ path responder }" } " pairs." } ;