Common Lisp Package: CAVEMAN.APP

# Caveman.App - Caveman Application Class. ## SYNOPSIS (defclass <myapp-app> (<app>) ()) (defvar *app* (make-instance '<myapp-app>)) (call *app*) ## DESCRIPTION Caveman.App provides a base class `<app>' for Caveman Applications. ## AUTHOR * Eitarow Fukamachi (e.arrows@gmail.com) ## SEE ALSO * Clack.Component

README:

FUNCTION

Public

NOT-FOUND

An action when no routing rules are found.

Undocumented

NEXT-ROUTE

Private

Undocumented

DISPATCH-WITH-RULES (RULES)

MEMBER-RULE (PATH-INFO METHOD RULES &KEY ALLOW-HEAD)

GENERIC-FUNCTION

Public

Undocumented

ADD-ROUTE (THIS ROUTING-RULE)

LOOKUP-ROUTE (THIS SYMBOL)

Private

Undocumented

MATCH (THIS METHOD URL-STRING &KEY ALLOW-HEAD)

PARAMETER (REQ &OPTIONAL NAME)

SLOT-ACCESSOR

Private

PATH-INFO (OBJECT)

The remainder of the request URL's path. This may be an empty string if the request URL targets the application root and does not have a trailing slash.

REQUEST-METHOD (OBJECT)

The HTTP request method. This must be one of :GET, :HEAD, :OPTIONS, :PUT, :POST, or :DELETE.

Undocumented

ROUTING-RULES (OBJECT)

SETFROUTING-RULES (NEW-VALUE OBJECT)

VARIABLE

Private

*NEXT-ROUTE-FUNCTION*

A function called when `next-route' is invoked. This will be overwritten in `dispatch-with-rules'.

*REQUEST*

Special variable to store Caveman Request, a instance of `<request>' in Caveman.Request package. Don't set to this variable directly. This is designed to be bound in lexical let.

*RESPONSE*

Special variable to store Caveman Response, a instance of `<response>' in Caveman.Response package. Don't set to this variable directly. This is designed to be bound in lexical let.

CLASS

Public

<APP>

Base class for Caveman Application. All Caveman Application must inherit this class.