Changeset 5403 in project


Ignore:
Timestamp:
08/13/07 21:11:04 (13 years ago)
Author:
sjamaan
Message:

Remove request args from documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/spiffy

    r5314 r5403  
    165165User-defined content-transporters allow customized retrieval and processing of resources, depending on file-type.
    166166
    167 ; (content-transporter TYPE [PROC]) : If called with a single argument, this procedure returns the content-transporter procedure for the given TYPE, which should be a symbol like {{text/html}}. If the optional argument PROC is given, then the content-transporter for the given type is set to PROC. PROC should accept four arguments: the type TYPE, the filename of the requested resource, the current request object and the list of URL-encoded arguments. Any output generated by PROC is transmitted to the client.
     167; (content-transporter TYPE [PROC]) : If called with a single argument, this procedure returns the content-transporter procedure for the given TYPE, which should be a symbol like {{text/html}}. If the optional argument PROC is given, then the content-transporter for the given type is set to PROC. PROC should accept three arguments: the type TYPE, the filename of the requested resource and the list of URL-encoded arguments. Any output generated by PROC is transmitted to the client.
    168168
    169169=== Access to the cache
     
    246246=== Some useful procedures
    247247
    248 ; (write-fragment-response REQUEST FRAGMENTS [CODE MESSAGE [ALIST [PORT]]]) : Generates a HTTP response and Writes the elements of the list FRAGMENTS as the contents of the body. A fragment may be a #f or the empty list (which are ignored), a string, character, number, symbol or a list of other fragments.
     248; (write-fragment-response FRAGMENTS [CODE MESSAGE [ALIST [PORT]]]) : Generates a HTTP response and Writes the elements of the list FRAGMENTS as the contents of the body. A fragment may be a #f or the empty list (which are ignored), a string, character, number, symbol or a list of other fragments.
    249249
    250250; (redirect PATH) : Changes the current value of (current-response-code) and (current-response-headers) to return a redirection response. This is basically the same as redirect-page but is usable in {{.ssp}} pages.
    251251
    252 ; (redirect-page REQUEST PATH) : Generates a {{303 See Other}} HTTP response that redirects the client to PATH.
     252; (redirect-page PATH) : Generates a {{303 See Other}} HTTP response that redirects the client to PATH.
    253253
    254254; (spiffy-debug FORMATSTRING ARG ...) : When debugging output has been turned on (via the debug argument to start-server, or by (spiffy-debug-mode #t)), then this is equivalent to {{(fprintf (current-error-port) FORMATSTRING ARG ...)}}.
    255255
    256 ; (write-response-header REQUEST [CODE MESSAGE [ALIST [PORT [PROTOCOL]]]]) : Writes a HTTP response header. This largely equivalent to {{http:write-response-header}}, but handles persistent connections properly by checking the HTTP version any Connection request headers.
     256; (write-response-header [CODE MESSAGE [ALIST [PORT [PROTOCOL]]]]) : Writes a HTTP response header. This largely equivalent to {{http:write-response-header}}, but handles persistent connections properly by checking the HTTP version any Connection request headers.
    257257
    258258; (current-workdir) : A parameter that holds the current include path. File loading operations like {{load-once}}, {{load-ssp}} or {{include-ssp}} set this parameter, so that nested load/include operations always take place relative the the containing source file.
     
    413413=== Changelog
    414414
     415* 3.5 Remove remaining superfluous REQUEST arguments from procedures.
    415416* 3.4 Add support for pathinfo, add support for stacked access-files, change access-files to be similar to vhost-handlers.  Fix the way path is handed to directory handlers to be the same as file handlers.  Add spiffy-access-denied? and remove spiffy-deny-paths and spiffy-deny-access (which makes it a lot cleaner and much more powerful). Automatically convert non-regexes to case insensitive regexes, making vhosting a little cleaner to set up.  Implement regression tests.
    416417* 3.3 Add handler ability for directory listings and extract existing handler to simple-directory-handler.  Fix relative directory handling for spiffy-root-path.  Fix directory links in directory listings for vhosts.
Note: See TracChangeset for help on using the changeset viewer.