(declare (usual-integrations))
\f
(define (http-get uri headers)
- (http-client-exchange "GET" (->uri uri) headers (bytevector)))
+ (http-client-exchange "GET" (->uri uri) headers #f))
(define (http-head uri headers)
- (http-client-exchange "HEAD" (->uri uri) headers (bytevector)))
+ (http-client-exchange "HEAD" (->uri uri) headers #f))
(define (http-post uri headers body)
(http-client-exchange "POST" (->uri uri) headers body))
(number->string m))
headers)
body))))
- (values headers "")))
+ (values headers (bytevector))))
\f
(define (simple-http-request? object)
(and (http-request? object)
(define (make-simple-http-request uri)
(guarantee simple-http-request-uri? uri 'make-http-request)
- (%make-http-request '|GET| uri #f '() ""))
+ (%make-http-request '|GET| uri #f '() (bytevector)))
(define (simple-http-response? object)
(and (http-response? object)