Changeset 15843 in project


Ignore:
Timestamp:
09/12/09 22:15:17 (10 years ago)
Author:
sjamaan
Message:

Describe clearly how the query strings are encoded/decoded, and add 0.9 to the changelog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/uri-common

    r15765 r15843  
    167167media type, using the given separator character(s).
    168168
     169The alist contains key/value pairs corresponding to the values in the
     170final urlencoded string.  If a value is {{#f}}, the key will be
     171'''omitted''' from the string.  If it is {{#t}} the key will be
     172present without a value. In all other cases, the value is converted to
     173a string and urlencoded.  The keys are always converted to a string
     174and urlencoded.
     175
    169176When encoding, if {{separator}} is a string, the first character will
    170177be used as the separator in the resulting querystring.  If it is a
     
    183190''all'' calls to procedures that return an uri-common object.
    184191
     192Examples:
     193
     194<enscript highlight=scheme>
     195(form-urlencode '(("lemon" . "ade") (sucks . #f) (rocks . #t) (number . 42)))
     196=> "lemon=ade;rocks;number=42"
     197
     198(form-urldecode "lemon=ade;rocks;number=42")
     199=> ((lemon . "ade") (rocks . #t) (number . "42"))
     200</enscript>
     201
    185202
    186203==== Normalization 
     
    203220=== Version History
    204221
     222* 0.9 Automatically convert non-strings to strings in creating queries
    205223* 0.8 Actually export form-urlencoded-separator
    206224* 0.7 Fix silly bug in the predicates from 0.6 (it helps to test first...)
Note: See TracChangeset for help on using the changeset viewer.