1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
guile/module
Andy Wingo 18c44b29e4 web: Location header is URI-reference; better URI-reference support
* module/web/uri.scm (validate-uri): Add reference? keyword argument,
  for validating references.
  (build-uri): Clarify comments to indicate that the result is an
  absolute URI.
  (build-uri-reference): New interface, to build URI-references.
  (string->uri-reference): Rename from string->uri*.  Fix fragment
  parsing to not include the #.
  (string->uri): Adapt to string->uri-reference name change.

* module/web/request.scm (request-absolute-uri): Add default-scheme
  optional argument.  Use it if the request-uri has no scheme, or
  error.

* module/web/http.scm (write-uri): Reflow to use "when".  Fix writing of
  URI-reference instances.
  (declare-uri-reference-header!): Rename from
  declare-relative-uri-header!.  Use string->uri-reference.
  ("Location"): Declare as a URI-reference header, as per RFC 7231.

* module/web/client.scm (open-socket-for-uri): Handle the case in which
  there is no URI scheme.

* test-suite/tests/web-http.test:
* test-suite/tests/web-uri.test: Add tests.
2014-11-01 15:36:56 +01:00
..
ice-9 Merge branch 'stable-2.0' 2014-09-30 03:50:47 -04:00
language Merge branch 'stable-2.0' 2014-09-30 03:50:47 -04:00
oop Fix foreign slot initialization and access 2014-04-27 11:02:35 +02:00
rnrs Merge branch 'stable-2.0' 2014-04-25 02:06:01 -04:00
scripts Merge branch 'stable-2.0' 2014-09-30 03:50:47 -04:00
srfi Merge branch 'stable-2.0' 2014-09-30 03:50:47 -04:00
sxml Remove duplicate definitions of call/ec' and let/ec'. 2013-04-06 15:40:19 +02:00
system Intern general arrays 2014-09-30 11:35:08 +02:00
texinfo Improve correctness and consistency of 'eval-when' usage. 2014-01-23 10:41:22 -05:00
web web: Location header is URI-reference; better URI-reference support 2014-11-01 15:36:56 +01:00
Makefile.am Merge branch 'stable-2.0' 2014-09-30 03:50:47 -04:00
rnrs.scm Add missing R6RS `open-file-input/output-port' procedure 2012-11-12 20:47:57 +01:00
statprof.scm Fix inner and outer stack cuts to match on procedure code 2014-05-01 14:26:20 +02:00
texinfo.scm Fix newline preservation in @example with lines beginning with @ 2014-03-17 21:49:16 +01:00