Changeset 8454 in project


Ignore:
Timestamp:
02/13/08 14:58:56 (12 years ago)
Author:
elf
Message:

Changes applied for elf (66.92.69.84) through svnwiki:

documenting new methods.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/http

    r8453 r8454  
    353353or a string and {{ATTRIBUTES}} is an a-list where each pair contains an attribute
    354354string and a value string.
     355
     356
     357
     358===== http:request attribute methods
     359
     360 [procedure] (http:request-attribute-get REQUEST ATTRIB [DEFAULT {{#f}}])
     361
     362Accessor procedure to get the value of {{ATTRIB}} in {{REQUEST}}.  If {{ATTRIB}} is not present in request, {{DEFAULT}} is returned.  The search is case-insensitive.  Note that this only returns the value; the attribute name is NOT returned.
     363
     364 [procedure] (http:request-attribute-add! REQUEST ATTRIB AVAL)
     365
     366Adds {{ATTRIB}} to {{REQUEST}}''s attribute list with its value set to {{AVAL}}.  If {{ATTRIB}} already appears in the list (case-insensitive), its value is set to {{AVAL}} and it retains its position in the list; otherwise, the {{(ATTRIB . AVAL)}} pair is added to the end.
     367
     368
     369 [procedure] (http:request-attribute-del! REQUEST ATTRIB)
     370
     371Removes {{ATTRIB}} from the attribute list in {{REQUEST}}, if it exists (case-insensitive search).  The order of the attribute list is not altered  aside from the removal.  It is not an error for {{ATTRIB}} to not appear in the list.   
     372 
     373
    355374
    356375===== http:read-line-limit
Note: See TracChangeset for help on using the changeset viewer.