The hunchentoot-cgi Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The hunchentoot-cgi Reference Manual

This is the hunchentoot-cgi Reference Manual, version 0.3, generated automatically by Declt version 2.3 "Robert April" on Tue Feb 20 08:50:08 2018 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

hunchentoot-cgi

A library for executing CGI scripts from the hunchentoot webserver written by Cyrus Harmon.

To activate hunchentoot-cgi, create a new dispatcher-and-handler and add this to the hunchentoot global dispatch table roughly as follows:

(pushnew (hunchentoot-cgi:create-cgi-dispatcher-and-handler
          "/cgi-bin/"
          "/usr/local/share/hunchentoot/cgi/"
         hunchentoot:*dispatch-table*
         :test #'equal)

This will instruct hunchentoot to field requests to /cgi-bin/foo and execute /usr/local/share/hunchentoot/cgi/foo as a CGI script.


Next: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 hunchentoot-cgi

Author

Cyrus Harmon <ch-lisp@bobobeach.com>

License

BSD

Version

0.3

Dependencies
Source

hunchentoot-cgi.asd (file)

Components

Next: , Previous: , Up: Top   [Contents][Index]

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.1 hunchentoot-cgi.asd

Location

hunchentoot-cgi.asd

Systems

hunchentoot-cgi (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.2 hunchentoot-cgi/defpackage.lisp

Parent

hunchentoot-cgi (system)

Location

defpackage.lisp

Packages

hunchentoot-cgi


Next: , Previous: , Up: Lisp files   [Contents][Index]

3.1.3 hunchentoot-cgi/util.lisp

Dependency

defpackage.lisp (file)

Parent

hunchentoot-cgi (system)

Location

util.lisp

Internal Definitions

Previous: , Up: Lisp files   [Contents][Index]

3.1.4 hunchentoot-cgi/hunchentoot-cgi.lisp

Dependencies
Parent

hunchentoot-cgi (system)

Location

hunchentoot-cgi.lisp

Exported Definitions

create-cgi-dispatcher-and-handler (function)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 hunchentoot-cgi

Source

defpackage.lisp (file)

Use List
Exported Definitions

create-cgi-dispatcher-and-handler (function)

Internal Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

5.1.1 Functions

Function: create-cgi-dispatcher-and-handler URI-PREFIX BASE-PATH &optional CONTENT-TYPE
Package

hunchentoot-cgi

Source

hunchentoot-cgi.lisp (file)


Previous: , Up: Definitions   [Contents][Index]

5.2 Internal definitions


Next: , Previous: , Up: Internal definitions   [Contents][Index]

5.2.1 Macros

Macro: with-program (PROGRAM PROGRAM-ARGS ENVIRONMENT &key OUTPUT INPUT) &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.

Package

hunchentoot-cgi

Source

util.lisp (file)


Previous: , Up: Internal definitions   [Contents][Index]

5.2.2 Functions

Function: copy-stream IN OUT &optional ELEMENT-TYPE

Copy everything from in to out

Package

hunchentoot-cgi

Source

util.lisp (file)

Function: 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.

Package

hunchentoot-cgi

Source

hunchentoot-cgi.lisp (file)

Function: 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.

Package

hunchentoot-cgi

Source

hunchentoot-cgi.lisp (file)

Function: 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.

Package

hunchentoot-cgi

Source

hunchentoot-cgi.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   H   L  
Index Entry  Section

F
File, Lisp, hunchentoot-cgi.asd: The hunchentoot-cgi<dot>asd file
File, Lisp, hunchentoot-cgi/defpackage.lisp: The hunchentoot-cgi/defpackage<dot>lisp file
File, Lisp, hunchentoot-cgi/hunchentoot-cgi.lisp: The hunchentoot-cgi/hunchentoot-cgi<dot>lisp file
File, Lisp, hunchentoot-cgi/util.lisp: The hunchentoot-cgi/util<dot>lisp file

H
hunchentoot-cgi.asd: The hunchentoot-cgi<dot>asd file
hunchentoot-cgi/defpackage.lisp: The hunchentoot-cgi/defpackage<dot>lisp file
hunchentoot-cgi/hunchentoot-cgi.lisp: The hunchentoot-cgi/hunchentoot-cgi<dot>lisp file
hunchentoot-cgi/util.lisp: The hunchentoot-cgi/util<dot>lisp file

L
Lisp File, hunchentoot-cgi.asd: The hunchentoot-cgi<dot>asd file
Lisp File, hunchentoot-cgi/defpackage.lisp: The hunchentoot-cgi/defpackage<dot>lisp file
Lisp File, hunchentoot-cgi/hunchentoot-cgi.lisp: The hunchentoot-cgi/hunchentoot-cgi<dot>lisp file
Lisp File, hunchentoot-cgi/util.lisp: The hunchentoot-cgi/util<dot>lisp file

Jump to:   F   H   L  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   C   F   H   M   W  
Index Entry  Section

C
copy-stream: Internal functions
create-cgi-dispatcher-and-handler: Exported functions

F
Function, copy-stream: Internal functions
Function, create-cgi-dispatcher-and-handler: Exported functions
Function, handle-cgi-script: Internal functions
Function, host-name: Internal functions
Function, host-name-and-port: Internal functions

H
handle-cgi-script: Internal functions
host-name: Internal functions
host-name-and-port: Internal functions

M
Macro, with-program: Internal macros

W
with-program: Internal macros

Jump to:   C   F   H   M   W  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables


Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

Jump to:   H   P   S  
Index Entry  Section

H
hunchentoot-cgi: The hunchentoot-cgi system
hunchentoot-cgi: The hunchentoot-cgi package

P
Package, hunchentoot-cgi: The hunchentoot-cgi package

S
System, hunchentoot-cgi: The hunchentoot-cgi system

Jump to:   H   P   S