Common Lisp Package: HUNCHENTOOT-CGI

README:

FUNCTION

Public

Undocumented

CREATE-CGI-DISPATCHER-AND-HANDLER (URI-PREFIX BASE-PATH &OPTIONAL CONTENT-TYPE)

Private

COPY-STREAM (IN OUT &OPTIONAL (ELEMENT-TYPE '(UNSIGNED-BYTE 8)))

Copy everything from in to out

HANDLE-CGI-SCRIPT (PATH &OPTIONAL CONTENT-TYPE)

A function which acts like a Hunchentoot handler for the file denoted by PATH. Send a content type header corresponding to CONTENT-TYPE or (if that is NIL) tries to determine the content type via the file's suffix.

HOST-NAME (&OPTIONAL REQUEST)

Returns just the host portion of the 'Host' incoming http header value, rather than either host or host:port if the port is specified.

HOST-NAME-AND-PORT (&OPTIONAL REQUEST)

Returns the multiple values host and port (or nil if no port is specified) of the 'Host' incoming http header value, rather than either host or host:port if the port is specified.

MACRO

Private

WITH-INPUT-FROM-PROGRAM ((STREAM PROGRAM PROGRAM-ARGS ENVIRONMENT) &BODY BODY)

Creates an new process of the specified by PROGRAM using PROGRAM-ARGS as a list of the arguments to the program. Binds the stream variable to an input stream from which the output of the process can be read and executes body as an implicit progn.