unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: guile-devel@gnu.org
Subject: [PATCH] http: Support CONNECT and PATCH HTTP methods.
Date: Fri, 10 Apr 2020 18:09:43 +0100	[thread overview]
Message-ID: <20200410170943.5483-1-mail@cbaines.net> (raw)

PATCH is described by RFC 5789 and CONNECT is described by RFC 7231.

* module/web/http.scm (parse-http-method): Support CONNECT and PATCH.
---
 module/web/http.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/module/web/http.scm b/module/web/http.scm
index de61c9495..4276e1744 100644
--- a/module/web/http.scm
+++ b/module/web/http.scm
@@ -1108,6 +1108,8 @@ symbol, like ‘GET’."
    ((string= str "DELETE" start end) 'DELETE)
    ((string= str "OPTIONS" start end) 'OPTIONS)
    ((string= str "TRACE" start end) 'TRACE)
+   ((string= str "CONNECT" start end) 'CONNECT)
+   ((string= str "PATCH" start end) 'PATCH)
    (else (bad-request "Invalid method: ~a" (substring str start end)))))
 
 (define* (parse-request-uri str #:optional (start 0) (end (string-length str)))
-- 
2.26.0




             reply	other threads:[~2020-04-10 17:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-10 17:09 Christopher Baines [this message]
2020-05-17 21:40 ` [PATCH] http: Support CONNECT and PATCH HTTP methods Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200410170943.5483-1-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).