1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-29 00:10:21 +02:00
guile/module
Andy Wingo be1be3e597 (web http): header names always represented as symbols
* module/web/http.scm (declare-header!): No need to specify `sym', as it
  can be derived from `name'. Change to take parser, validator, and
  writer as positional arguments, and multiple? as a keyword.
  (parse-header): Change to take the header as a symbol already, and
  just return the parsed value.  All headers are symbols now, including
  unknown headers.  I feel OK doing this given that the symbol GC works
  now.
  (lookup-header-decl): Only look up headers by symbol.
  (read-header): Adapt to parse-header change.

  (valid-header?, write-header): Adapt to all headers being symbols.
  (split-header-names, list-of-header-names?, write-header-list):
  Represent all header names as symbols.

  (declare-opaque-header!, declare-date-header!)
  (declare-string-list-header!, declare-header-list-header!)
  (declare-integer-header!, declare-uri-header!)
  (declare-quality-list-header!, declare-param-list-header!)
  (declare-key-value-list-header!, declare-entity-tag-list-header!):
  Change to be functions instead of syntax, and no need to specify the
  symbolic name. Update all header declarations accordingly.

* module/web/request.scm (validate-headers):
* module/web/response.scm (validate-headers): Adapt to all headers being
  symbols.

* test-suite/tests/web-http.test (pass-if-parse, pass-if-any-error)
  (pass-if-parse-error): Update for parse-header change.
  ("general headers"): Update header list examples to be all symbols.
2011-01-08 10:54:07 -08:00
..
ice-9 fix tab completion in repl (doh) 2011-01-07 22:01:27 -08:00
language Tiny style improvement in the ECMAScript compiler. 2011-01-05 22:22:15 +01:00
oop Remove goops-version, which is no longer defined 2010-10-02 18:14:45 +01:00
rnrs rnrs control only depends on (guile) 2010-12-10 18:04:02 +01:00
scripts Have "frisk" recognize #:use-module' and #:autoload'. 2010-10-27 23:31:49 +02:00
srfi Get rid of `define-macro' in the SRFI 26 implementation 2010-12-07 23:13:55 +01:00
sxml sxml->xml fix 2010-12-02 22:24:26 +01:00
system add ,reload meta-command and document it and reload-module 2010-12-17 13:27:43 +01:00
texinfo Fix typos. 2010-09-02 00:04:39 +02:00
web (web http): header names always represented as symbols 2011-01-08 10:54:07 -08:00
Makefile.am store macro definitions in the function slot 2010-12-07 13:21:02 +01:00
rnrs.scm Work towards a more complete implementation of `(rnrs io ports)' 2010-11-24 23:04:24 +01:00
statprof.scm remove a number of debug options 2010-09-24 20:57:01 +02:00
texinfo.scm Remove unused top-level variables. 2010-01-11 01:21:14 +01:00