unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* [PATCH] http: Support CONNECT and PATCH HTTP methods.
@ 2020-04-10 17:09 Christopher Baines
  2020-05-17 21:40 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Baines @ 2020-04-10 17:09 UTC (permalink / raw)
  To: guile-devel

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




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] http: Support CONNECT and PATCH HTTP methods.
  2020-04-10 17:09 [PATCH] http: Support CONNECT and PATCH HTTP methods Christopher Baines
@ 2020-05-17 21:40 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-05-17 21:40 UTC (permalink / raw)
  To: guile-devel

Hello,

Christopher Baines <mail@cbaines.net> skribis:

> PATCH is described by RFC 5789 and CONNECT is described by RFC 7231.
>
> * module/web/http.scm (parse-http-method): Support CONNECT and PATCH.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-17 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-10 17:09 [PATCH] http: Support CONNECT and PATCH HTTP methods Christopher Baines
2020-05-17 21:40 ` Ludovic Courtès

unofficial mirror of guile-devel@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guile-devel/0 guile-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guile-devel guile-devel/ https://yhetil.org/guile-devel \
		guile-devel@gnu.org
	public-inbox-index guile-devel

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.lisp.guile.devel
	nntp://news.gmane.io/gmane.lisp.guile.devel


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git