]> gitweb.factorcode.org Git - factor.git/commit
http.server: Implement DELETE, PATCH; handle unknown methods
authorMichael Raitza <spacefrogg-git@spacefrogg.net>
Tue, 16 Jan 2024 17:16:02 +0000 (18:16 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Jan 2024 17:23:28 +0000 (09:23 -0800)
commite06b962f4c559c761e79162e90568bdaee322554
treec93e3c4c22c6a7792236c91865791da4f4edca9a
parent2ee6330b04c79bbcd2ff70891e66839963498a0c
http.server: Implement DELETE, PATCH; handle unknown methods

Handle DELETE and PATCH.  Be lenient and hand URL query parameters to
the user with a DELETE.  There is debate about whether DELETE should
handle query parameters.  Additionally, some implementations even reject
DELETE requests with a body.  So, leave all these additional
"protections" for a later implementation (e.g. in furnace).

Treat unknown methods like requests without parameters.
basis/http/server/server-docs.factor
basis/http/server/server.factor