Common Lisp Package: HUNCHENTOOT-TEST

README:

FUNCTION

Public

TEST-HUNCHENTOOT (BASE-URL &KEY (MAKE-COOKIE-JAR (LAMBDA () (MAKE-INSTANCE 'COOKIE-JAR))))

Runs the built-in confidence test. BASE-URL is the base URL to use for testing, it should not have a trailing slash. The keyword arguments accepted are for future extension and should not currently be used. The script expects the Hunchentoot example test server to be running at the given BASE-URL and retrieves various pages from that server, expecting certain responses.

Private

FUNCTION-DESIGNATOR-P (THING)

Return true value if THING is a function or a symbol that has a function definition.

Undocumented

AUTHORIZATION-PAGE

CLEAN-TMP-DIR

EASY-DEMO (&KEY (FIRST-NAME (OR (AND (BOUNDP '*REQUEST*) (COMPUTE-PARAMETER first-name 'STRING POST)) NIL)) (LAST-NAME (OR (AND (BOUNDP '*REQUEST*) (COMPUTE-PARAMETER last-name 'STRING POST)) NIL)) (AGE (OR (AND (BOUNDP '*REQUEST*) (COMPUTE-PARAMETER age 'INTEGER POST)) NIL)) (IMPLEMENTATION (OR (AND (BOUNDP '*REQUEST*) (COMPUTE-PARAMETER implementation 'KEYWORD POST)) NIL)) (MEAL (OR (AND (BOUNDP '*REQUEST*) (COMPUTE-PARAMETER meal '(HASH-TABLE BOOLEAN) POST)) NIL)) (TEAM (OR (AND (BOUNDP '*REQUEST*) (COMPUTE-PARAMETER team 'LIST POST)) NIL)))

FILE-CONTENTS (PATHNAME &KEY (ELEMENT-TYPE '(UNSIGNED-BYTE 8)))

FILE-LENGTH-STRING (PATHNAME)

FORBIDDEN

HANDLE-FILE (POST-PARAMETER)

HTTP-ASSERT (REPLY-SLOT-NAME OPERATOR &REST ARGS)

HTTP-ASSERT-BODY (REGEX)

HTTP-ASSERT-HEADER (HEADER-NAME OPERATOR &REST ARGS)

HTTP-REQUEST (URL &REST ARGS &KEY (PROTOCOL HTTP/1.1) (METHOD GET) CONTENT CONTENT-TYPE CONTENT-LENGTH RANGE COOKIE-JAR BASIC-AUTHORIZATION PARAMETERS EXTERNAL-FORMAT-OUT ADDITIONAL-HEADERS)

IMAGE-RAM-PAGE

INFO

INTEGER-EQUAL (STRING INTEGER)

MATCHES (STRING REGEX)

OOPS

PARAMETER-TEST (&KEY (METHOD GET) (CHARSET ISO-8859-1))

PARAMETER-TEST-LATIN1-GET

PARAMETER-TEST-LATIN1-POST

PARAMETER-TEST-UTF8-GET

PARAMETER-TEST-UTF8-POST

REDIR

SAY (FMT &REST ARGS)

SEND-FILE

SESSION-TEST

STREAM-DIRECT

STREAM-DIRECT-UTF-8

STREAM-DIRECT-UTF-8-STRING

UPLOAD-TEST

MACRO

Private

WITH-OPERATOR-DEFAULTING ((DEFAULT-OPERATOR) &BODY BODY)

If OPERATOR is not a function designator, prepend it to ARGS and bind OPERATOR to DEFAULT-OPERATOR. OPERATOR and ARGS are captured from the expansion environment.

Undocumented

INFO-TABLE (&REST FORMS)

WITH-HTML (&BODY BODY)

WITH-LISP-OUTPUT ((VAR) &BODY BODY)

WITH-SCRIPT-CONTEXT ((&REST ARGS &KEY (CONTEXT-CLASS-NAME 'SCRIPT-CONTEXT) &ALLOW-OTHER-KEYS) &BODY BODY)

GENERIC-FUNCTION

Private

Undocumented

CONDITION-ARGS (CONDITION)

CONDITION-ASSERTION (CONDITION)

SETFCONDITION-ASSERTION (NEW-VALUE CONDITION)

CONDITION-HEADER-NAME (CONDITION)

CONDITION-OPERATOR (CONDITION)

CONDITION-REPLY (CONDITION)

CONDITION-REPLY-SLOT-NAME (CONDITION)

CONDITION-REPLY-VALUE (CONDITION)

SLOT-ACCESSOR

Private

SCRIPT-CONTEXT-BASE-URL (OBJECT)

Base URL to be used for all HTTP requests in this script context

VARIABLE

Private

*LAST-REPLY*

Contains the last HTTP reply received

*SCRIPT-CONTEXT*

Current script context

*UTF-8-FILE*

Demo file stolen from <http://www.w3.org/2001/06/utf-8-test/>.

Undocumented

*HEADLINE*

*TEST-IMAGE*

*THIS-FILE*

*TMP-TEST-DIRECTORY*

*TMP-TEST-FILES*

*UTF-8*

CLASS

Private

Undocumented

HTTP-REPLY

SCRIPT-CONTEXT

CONDITION

Private

Undocumented

ASSERTION-FAILED

HEADER-ASSERTION-FAILED