1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-22 19:44:10 +02:00
guile/module/web
Christopher Baines baa1424335 web: Don't hide missing data in the chunked input port.
This port is of limited use if it cannot be used reliably. Rather than
behaving as if the input has finished when it ends unexpectedly, instead
raise an exception.

* module/web/http.scm (make-chunked-input-port): Raise an exception on
premature termination.
(&chunked-input-ended-prematurely): New exception type.
(chunked-input-ended-prematurely-error?): New procedure.
* test-suite/tests/web-http.test (pass-if-named-exception): Rename to
pass-if-named-exception.
(pass-if-named-exception): New syntax.
("Exception on premature chunk end"): New test for this behaviour.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-07-04 11:22:13 +02:00
..
server web: Export 'server-impl' procedures and the 'http' server implementation. 2016-05-22 19:11:32 +02:00
client.scm web: 'tls-wrap' returns an unbuffered custom port. 2021-03-19 14:13:31 +01:00
http.scm web: Don't hide missing data in the chunked input port. 2022-07-04 11:22:13 +02:00
request.scm web: add support for URI-reference 2017-05-21 13:42:29 +02:00
response.scm Web server and client use suspendable ports 2017-02-08 15:16:25 +01:00
server.scm web: Export 'server-impl' procedures and the 'http' server implementation. 2016-05-22 19:11:32 +02:00
uri.scm Add call-with-input-bytevector, call-with-output-bytevector 2021-01-12 12:09:19 +01:00