@@ -173,7 +173,7 @@ Here is an example typical of what you will find in many applications:
173173 [seconds number?]
174174 [mime (or/c false/c bytes?)]
175175 [headers (listof header?)]
176- [output (output-port? . -> . void )])]{
176+ [output (output-port? . -> . any )])]{
177177
178178An HTTP response where @racket[output] produces the body by writing to
179179the output port. @racket[code] is the response code, @racket[message]
@@ -214,6 +214,10 @@ Examples:
214214 #"http://racket-lang.org/download " ))
215215 void)
216216 ]
217+
218+ @history[#:changed "1.2 "
219+ @elem{Contract on @racket[output] weaked to allow @racket[any ]
220+ as the result (instead of demanding @racket[void?]).}]
217221}
218222
219223@defproc[(response/full [code number?] [message bytes?] [seconds number?] [mime (or/c false/c bytes?)]
@@ -236,7 +240,7 @@ Examples:
236240 ]
237241}
238242
239- @defproc[(response/output [output (-> output-port? void? )]
243+ @defproc[(response/output [output (-> output-port? any )]
240244 [#:code code number? 200 ]
241245 [#:message message bytes? #"Okay " ]
242246 [#:seconds seconds number? (current-seconds)]
@@ -245,6 +249,10 @@ Examples:
245249 response?]{
246250Equivalent to
247251@racketblock[(response code message seconds mime-type headers output)]
252+
253+ @history[#:changed "1.2 "
254+ @elem{Contract on @racket[output] weaked to allow @racket[any ]
255+ as the result (instead of demanding @racket[void?]).}]
248256}
249257
250258@defthing[TEXT/HTML-MIME-TYPE bytes?]{Equivalent to @racket[#"text/html; charset=utf-8 " ].}
0 commit comments