Changeset 27744 in project


Ignore:
Timestamp:
10/31/12 05:44:01 (7 years ago)
Author:
Peter Danenberg
Message:

@return -> @to

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/call-with-query

    r27742 r27744  
    88; server : Server variables, e.g. environment
    99; client : Client variables, e.g. {get,post,cookie}-parameters
    10 <enscript highlight="scheme">(defstruct query server client)
     10<enscript highlight="scheme">(define-record-and-printer query server client)
    1111</enscript>
    1212=== {{query-client-any}}
    13 <procedure>(query-client-any query key) → unspecified</procedure>
    14 <procedure>(query-client-any query key default) → unspecified</procedure>
     13<procedure>(query-client-any query key) → object</procedure>
     14<procedure>(query-client-any query key default) → object</procedure>
    1515Return the first client parameter (e.g. {get,post,cookie}-parameter)
    1616corresponding to the key.
    1717; key : The key whose value to extract
    1818; default : A default value if {{key}} doesn't exist
    19 ; @return : object
    2019<enscript highlight="scheme">(define query-client-any
    2120  (case-lambda
     
    2423</enscript>
    2524=== {{query-client-all}}
    26 <procedure>(query-client-all query key) → unspecified</procedure>
    27 <procedure>(query-client-all query key default) → unspecified</procedure>
     25<procedure>(query-client-all query key) → list</procedure>
     26<procedure>(query-client-all query key default) → list</procedure>
    2827Return a list of client parameters (e.g. {get,post,cookie}-parameters)
    2928corresponding to the key.
    3029; key : The key whose value to extract
    3130; default : A default value if {{key}} doesn't exist
    32 ; @return : list
    3331<enscript highlight="scheme">(define query-client-all
    3432  (case-lambda
     
    3735</enscript>
    3836=== {{query-server-any}}
    39 <procedure>(query-server-any query key) → unspecified</procedure>
    40 <procedure>(query-server-any query key default) → unspecified</procedure>
     37<procedure>(query-server-any query key) → object</procedure>
     38<procedure>(query-server-any query key default) → object</procedure>
    4139Return the first client parameter (e.g.
    4240environment-variable) corresponding to the key.
    4341; key : The key whose value to extract
    4442; default : A default value if {{key}} doesn't exist
    45 ; @return : object
    4643<enscript highlight="scheme">(define query-server-any
    4744  (case-lambda
     
    5047</enscript>
    5148=== {{query-server-all}}
    52 <procedure>(query-server-all query key) → unspecified</procedure>
    53 <procedure>(query-server-all query key default) → unspecified</procedure>
     49<procedure>(query-server-all query key) → list</procedure>
     50<procedure>(query-server-all query key default) → list</procedure>
    5451Return a list of client parameters (e.g.
    5552 environment-variables) corresponding to the key.
    5653; key : The key whose value to extract
    5754; default : A default value if {{key}} doesn't exist
    58 ; @return : list
    5955<enscript highlight="scheme">(define query-server-all
    6056  (case-lambda
     
    6359</enscript>
    6460=== {{query-any}}
    65 <procedure>(query-any query key) → unspecified</procedure>
    66 <procedure>(query-any query key default) → unspecified</procedure>
     61<procedure>(query-any query key) → object</procedure>
     62<procedure>(query-any query key default) → object</procedure>
    6763Return the first client or server parameter (see above) corresponding to the key.
    6864; key : The key whose value to extract
    6965; default : A default value if {{key}} doesn't exist
    70 ; @return : object
    7166<enscript highlight="scheme">(define query-any
    7267  (case-lambda
     
    7570</enscript>
    7671=== {{query-all}}
    77 <procedure>(query-all query key) → unspecified</procedure>
    78 <procedure>(query-all query key default) → unspecified</procedure>
     72<procedure>(query-all query key) → list</procedure>
     73<procedure>(query-all query key default) → list</procedure>
    7974Return a list of client or server parameters (see above) corresponding to the key.
    8075; key : The key whose value to extract
    8176; default : A default value if {{key}} doesn't exist
    82 ; @return : list
    8377<enscript highlight="scheme">(define query-all
    8478  (case-lambda
     
    119113        (parameterize
    120114          ((current-output-port
    121              (make-output-port (lambda (scribendum) (out scribendum)) void)))
     115             (make-output-port (lambda (scribendum) (out scribendum)) void))
     116           (current-error-port
     117             (make-output-port (lambda (errandum) (err errandum)) void)))
    122118          (quaerendum
    123119            (make-query
    124               server:
    125120              environment
    126               client:
    127121              (append cookies cookies2 post-data query))))))))
    128122</enscript>
Note: See TracChangeset for help on using the changeset viewer.