(module tester<br> mzscheme<br> <br> (require (lib "servlet.ss" "web-server")<br> (lib "xml.ss" "xml"))<br> (provide start interface-version timeout)<br> <br> (define overall '())<br>
(define timeout +inf.0)<br> (define interface-version 'v1)<br> <br> (define (start initial-request)<br> (let ((req (extract-binding/single 'req<br> (request-bindings initial-request))))<br>
(if (string=? req "yes")<br> (let ((cookie<br> (extract-bindings 'cookie<br> (request-headers initial-request))))<br> (send/finish `(p ,(format "~a" cookie))))<br>
(send/finish<br> (make-response/full 200 "None" (current-seconds) "text/html; charset=utf-8" <br> '((cookie . '("Set-Cookie: NAME=hello;")))<br>
(xexpr->string `(p "hello, sent"))))))))<br><br>When I try to go to this page, I get the following error:<br><br>Servlet didn't load.
/home/justin/plw/./servlets/tester.ss:27:24: compile: unbound variable in module in: make-response/full
=== context ===
/usr/lib/plt/collects/mred/private/snipfile.ss:192:10
/usr/lib/plt/collects/web-server/dispatchers/dispatch-servlets.ss:281:4: load-servlet/path
/usr/lib/plt/collects/web-server/dispatchers/dispatch-servlets.ss:264:4: reload-servlet-script
...ivate/cache-table.ss:38:46
/usr/lib/plt/collects/web-server/private/cache-table.ss:30:11
cache-table-lookup!
select-handler/no-breaks
select-handler/no-breaks
select-handler/no-breaks
dispatcher?
dispatcher?
/usr/lib/plt/collects/web-server/private/dispatch-server-unit.ss:73:10: connection-loop<br><br>Why should make-response/full not be bound?<br>