chickadee » http-curl » call-with-input-request

call-with-input-request uri-or-request writer readerprocedure

Like with-input-from-request, but reader receives the response body port as its argument.

Returns three values: the reader result, the request URI, and the intarweb response object.

(call-with-input-request
 "https://httpbin.org/get" #f
 (lambda (port)
   (read-string #f port)))