Re: Sketch of a Scheme http request procedures Peter Bex 13 Mar 2020 14:52 UTC
On Fri, Mar 13, 2020 at 10:38:52AM -0400, John Cowan wrote: > I also realized that response-style makes no sense: it's the Content-Type > header in the response that determines if what comes back is textual or > not. I'm inclined to think that returning a bytevector makes the most > sense > > (simple-http-request verb url [ content-type source ]) => bytevector I don't think that's a great API, it makes it impossible to download files that are larger than the amount of RAM currently available. > where source can be a bytevector, string, or input port. What exactly is source, again? The request body to send? Cheers, Peter