[PATCH] Allow specifying the socket style for open-socket-for-uri.

2023-07-20 Thread Christopher Baines
Since this allows specifying additional behaviours for the socket through using SOCK_CLOEXEC and/or SOCK_NONBLOCK (when bitwise or'ed with SOCK_STREAM). Note that Guile/guile-gnutls currently doesn't support performing the TLS handshake on a non-blocking socket, so this currently won't work. * mo

[PATCH] web: Support reading chunked request bodies.

2023-07-20 Thread Christopher Baines
Guile already supports chunked response bodies, but chunked request bodies are allowed as well. This is useful when you're sending an unknown amount of data in the request. * module/web/request.scm (read-request-body): Support the request body being chunked. --- module/web/request.scm | 26 +

[PATCH] Make get-bytevector-all suspendable.

2023-07-20 Thread Christopher Baines
I'm looking at this since it's used in (web response) read-response-body. * module/ice-9/suspendable-ports.scm (get-bytevector-all): New procedure. (port-bindings): Add it. --- module/ice-9/suspendable-ports.scm | 36 ++ 1 file changed, 36 insertions(+) diff --git a/m