1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-22 12:30:32 +02:00
guile/module/web
Andy Wingo 990b11c53f Add http-post, http-put, et cetera
* module/web/client.scm (ensure-uri): New helper.
  (open-socket-for-uri): Accept a URI as a string or as a URI object.
  (extend-request, sanitize-request): New helpers, like the
  corresponding functions in (web server).
  (decode-response-body): Add a reference to the HTTP/1.1 spec, and
  use (ice-9 iconv).
  (request): New helper, factoring all aspects of sending an HTTP
  request and getting a response.
  (http-get): Redefine in terms of http-get.  Deprecate the
  #:extra-headers argument in favor of #:headers.  Allow a body.  Add a
  #:streaming? argument, subsuming the functionality of http-get*.
  (http-get*): Deprecate.
  (http-head, http-post, http-put, http-delete, http-trace)
  (http-options): Define interfaces for all HTTP verbs.

* test-suite/tests/web-client.test: Add tests.

* doc/ref/web.texi: Update documentation.

Thanks to Gregory Benison for the initial patch.
2013-01-11 15:40:00 +01:00
..
server web server http: 400 Bad Request on bad requests 2012-03-11 10:29:06 +01:00
client.scm Add http-post, http-put, et cetera 2013-01-11 15:40:00 +01:00
http.scm remove (web http) TODO list 2013-01-11 15:15:42 +01:00
request.scm syncronize web module docstrings with manual 2012-11-24 15:40:14 +01:00
response.scm read-response-body always returns bytevector or #f 2013-01-11 15:15:43 +01:00
server.scm (web server) uses (ice-9 iconv) 2013-01-11 15:15:42 +01:00
uri.scm web client: correctly handle uri-query, etc. in relative URI headers 2012-11-27 22:41:33 +01:00