- call-with-input-request* uri-or-request writer readerprocedure
Like call-with-input-request, but reader receives both the response body port and the intarweb response object.
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 response) (printf "Status: ~A~%" (response-code response)) (read-string #f port)))