svn: r13420
This commit is contained in:
Jay McCarthy 2009-02-04 19:33:17 +00:00
parent 9308d2dddf
commit 7edf96de7a
3 changed files with 8 additions and 7 deletions

View File

@ -7,7 +7,7 @@
(define (start initial-request)
(make-response/full
200 "Okay"
200 #"Okay"
(current-seconds) TEXT/HTML-MIME-TYPE
empty
(list (include-template "static.html"))))

View File

@ -439,21 +439,22 @@ Consider this example:
(output-response/method
conn
(make-response/full
200 "Okay"
200 #"Okay"
(current-seconds) TEXT/HTML-MIME-TYPE
empty
(list (format "hello world ~a"
(list (string->bytes/utf-8
(format "hello world ~a"
(sort (build-list 100000 (λ x (random 1000)))
<))))
<)))))
(request-method req)))
#:over-limit 'block))
(lambda (conn req)
(output-response/method
conn
(make-response/full 200 "Okay"
(make-response/full 200 #"Okay"
(current-seconds) TEXT/HTML-MIME-TYPE
empty
(list "<html><body>Unlimited</body></html>"))
(list #"<html><body>Unlimited</body></html>"))
(request-method req))))
#:port 8080)

View File

@ -257,7 +257,7 @@ the @scheme[list] response type:
If you want more control then you can generate a @scheme[response/full] struct:
@schemeblock[
(make-response/full
200 "Okay"
200 #"Okay"
(current-seconds) TEXT/HTML-MIME-TYPE
empty
(list (include-template "static.html")))