racket/collects/tests/web-server/scheme-units/test-web-root/servlets/test6.ss
2008-02-23 09:42:03 +00:00

20 lines
488 B
Scheme

;; Non-incremental servlet with arguments on the URL, in text/plain, no URL
;; path.
(module test6 mzscheme
(require web-server/servlet
)
(provide start timeout interface-version)
(define timeout 1)
(define interface-version 'v1)
(define (start req)
(send/finish
(cons "text/plain"
(map
(lambda (binding)
(string-append (symbol->string (car binding)) (cdr binding)))
(request-bindings req)))))
)