add GET-BINDINGS: gets bindings out of REQUEST
This commit is contained in:
parent
bdf62cbf05
commit
06c8b5ea5d
|
@ -36,6 +36,8 @@
|
||||||
;;; This only works for GET and POST methods.
|
;;; This only works for GET and POST methods.
|
||||||
|
|
||||||
(define form-query parse-html-form-query)
|
(define form-query parse-html-form-query)
|
||||||
|
(define (get-bindings request)
|
||||||
|
(form-query (http-url:search (request:url request))))
|
||||||
|
|
||||||
(define (extract-bindings bindings key)
|
(define (extract-bindings bindings key)
|
||||||
(let ((key (if (symbol? key) (symbol->string key) key)))
|
(let ((key (if (symbol? key) (symbol->string key) key)))
|
||||||
|
|
Loading…
Reference in New Issue