net/http-client: adjust data-procedure/c
contract
Promise more (a `void?` result) and requies less (`any` instead of `any/c`).
This commit is contained in:
parent
ddf0a334a8
commit
4aa61744c6
|
@ -155,7 +155,7 @@ response, which is why there is no @racket[#:closed?] argument like
|
|||
|
||||
Contract for a procedure that accepts a procedure of one
|
||||
argument, which is a string or byte string:
|
||||
@racket[(-> (-> (or/c bytes? string?) any/c) any/c)].
|
||||
@racket[(-> (-> (or/c bytes? string?) void?) any)].
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -299,7 +299,7 @@
|
|||
#:close? #t))
|
||||
|
||||
(define data-procedure/c
|
||||
(-> (-> (or/c bytes? string?) any/c) any/c))
|
||||
(-> (-> (or/c bytes? string?) void?) any))
|
||||
|
||||
(provide
|
||||
data-procedure/c
|
||||
|
|
Loading…
Reference in New Issue
Block a user