Common Lisp Package: CLACK.SESSION.STATE.COOKIE

# Clack.Session.State.Cookie - Basic cookie-based session state. ## DESCRIPTION Clack.Session.State.Cookie will maintain session state using browser cookies. ## AUTHOR Eitarow Fukamachi (e.arrows@gmail.com) ## SEE ALSO * Clack.Session.State * Clack.Middleware.Session

README:

FUNCTION

Private

MAKE-REQUEST (ENV)

A synonym for (make-instance '<request> ...). Make a <request> instance from environment plist. Raw-body of the instance will be shared, meaning making an instance of <request> doesn't effect on an original raw-body.

MAKE-RESPONSE (&OPTIONAL STATUS HEADERS BODY)

A synonym for (make-instance '<response> ...). Create a <response> instance.

MERGE-PLIST (P1 P2)

Merge two plist into one plist. If same keys in two plist, second one will be adopted. Example: (merge-plist '(:apple 1 :grape 2) '(:banana 3 :apple 4)) ;;=> (:GRAPE 2 :BANANA 3 :APPLE 4)

REMOVE-FROM-PLIST (PLIST &REST KEYS)

Returns a propery-list with same keys and values as PLIST, except that keys in the list designated by KEYS and values corresponding to them are removed. The returned property-list may share structure with the PLIST, but PLIST is not destructively modified. Keys are compared using EQ.

GENERIC-FUNCTION

Public

Undocumented

EXPIRE (THIS ID RES &OPTIONAL OPTIONS)

EXTRACT-ID (THIS ENV)

FINALIZE (THIS ID RES OPTIONS)

GENERATE-ID (THIS &REST ARGS)

SESSION-ID (THIS ENV)

VALID-SID-P (THIS ID)

Private

Undocumented

COOKIES (REQ &OPTIONAL NAME)

MERGE-OPTIONS (THIS OPTIONS)

SET-COOKIES (RES &OPTIONAL NAME)

SETFSET-COOKIES (VALUE RES &OPTIONAL NAME)

SLOT-ACCESSOR

Public

Undocumented

DOMAIN (OBJECT)

SETFDOMAIN (NEW-VALUE OBJECT)

EXPIRES (OBJECT)

SETFEXPIRES (NEW-VALUE OBJECT)

HTTPONLY (OBJECT)

SETFHTTPONLY (NEW-VALUE OBJECT)

PATH (OBJECT)

SETFPATH (NEW-VALUE OBJECT)

SECURE (OBJECT)

SETFSECURE (NEW-VALUE OBJECT)

CLASS

Public

Undocumented

<CLACK-SESSION-STATE-COOKIE>