Common Lisp Package: RESTAS

README:

FUNCTION

Public

DEBUG-MODE-OFF (&OPTIONAL (KILL-DEBUGGING-THREADS T))

Turn off debug mode

DEBUG-MODE-ON

Enable debug mode

Undocumented

@APACHE-XSENDFILE (ORIGIN)

@NGINX-ACCEL-REDIRECT (ORIGIN)

@NO-CACHE (ROUTE)

ABORT-ROUTE-HANDLER (OBJ &KEY RETURN-CODE CONTENT-TYPE)

CONTEXT-ADD-VARIABLE (CONTEXT SYMBOL &OPTIONAL VALUE)

CONTEXT-REMOVE-VARIABLE (CONTEXT SYMBOL)

CONTEXT-SYMBOL-VALUE (CONTEXT SYMBOL)

SETFCONTEXT-SYMBOL-VALUE (NEWVAL CONTEXT SYMBOL)

COPY-RESTAS-CONTEXT (RC)

GENURL (ROUTE-SYMBOL &REST ARGS &KEY &ALLOW-OTHER-KEYS)

GENURL* (ROUTE-SYMBOL &REST ARGS &KEY &ALLOW-OTHER-KEYS)

MAKE-CONTEXT (&OPTIONAL BINDINGS)

RECONNECT-ALL-ROUTES

REDIRECT (ROUTE-SYMBOL &REST ARGS)

REQUEST-FULL-URI (&OPTIONAL (REQUEST *REQUEST*))

START (MODULE &KEY SSL-CERTIFICATE-FILE SSL-PRIVATEKEY-FILE SSL-PRIVATEKEY-PASSWORD HOSTNAME (PORT (IF SSL-CERTIFICATE-FILE 443 80)) ADDRESS ACCEPTOR-CLASS (CONTEXT (MAKE-CONTEXT)) URL RENDER-METHOD DECORATORS)

STOP-ALL (&KEY SOFT)

Private

AFTER-CLOSE-SWANK-CONNECTION (CONNECTION)

Turns off debug mode and destroy debugging threads after closing the connection with the swank-server

ENSURE-VHOST-EXIST (HOSTNAME PORT)

Tests whether the vhost exist, and attempts to create them if they do not.

KILL-ALL-DEBUGGING-THREADS

Used for destroy all debugging threads

Undocumented

%DEFINE-POLICY (NAME METHODS &KEY INTERFACE-PACKAGE INTERFACE-METHOD-TEMPLATE INTERNAL-PACKAGE INTERNAL-FUNCTION-TEMPLATE)

APPLY-DECORATORS (ROUTE DECORATORS)

APPLY-FORMAT-AUX (FORMAT ARGS)

CLEAR-ALL-VHOST

CONCAT-PATHNAMES (PATH1 PATH2)

CONTEXT-ALL-VALUES (CONTEXT)

CONTEXT-ALL-VARS (CONTEXT)

CREATE-ROUTE-FROM-SYMBOL (SYMBOL MODULE)

DISTRIBUTE-ALL-ROUTES (PACKAGE)

DISTRIBUTE-ROUTE (ROUTE-SYMBOL)

FIND-PKGMODULE-TRAITS (PACKAGE)

FIND-ROUTE (ROUTE-SYMBOL &OPTIONAL (MODULE *MODULE*))

FIND-VHOST (HOSTNAME.PORT)

MAKE-INTERNAL-FUNCTION (NAME POLICY-VAR INTERFACE-METHOD LAMBDA-LIST &OPTIONAL DOCUMENTATION)

MAYBE-INVOKE-DEBUGGER (CONDITION)

MODULE-DECORATORS (PKGMODULE)

MODULE-REAL-URL (MODULE)

PARSE-ALL-DECLARATIONS (DECLARATIONS ALLOWED-TYPES &OPTIONAL TRAITS)

PKGMODULE-TRAITS-APPEND-REFERENCE (PACKAGE REFERENCE)

PKGMODULE-TRAITS-MODULES (PACKAGE)

PKGMODULE-TRAITS-REFERENCES (PACKAGE)

PKGMODULE-TRAITS-ROUTES (PACKAGE)

REGISTER-PKGMODULE-TRAITS (PACKAGE &REST TRAITS &KEY &ALLOW-OTHER-KEYS)

REGISTER-ROUTE-TRAITS (ROUTE-SYMBOL TRAITS)

REQUEST-HOSTNAME-PORT (ACCEPTOR REQUEST)

RESTAS-DISPATCH-REQUEST (ACCEPTOR REQUEST)

ROUTE-RENDER-METHOD (ROUTE)

ROUTE-SYMBOL-TEMPLATE (ROUTE-SYMBOL)

ROUTE-TEMPLATE-FROM-SYMBOL (SYMBOL MODULE)

SPLIT-CODE-DECLARATIONS (BODY)

VHOST-HOSTNAME-PORT (VHOST)

MACRO

Public

Undocumented

DEFINE-MODULE (NAME &BODY OPTIONS)

DEFINE-POLICY (NAME &BODY BODY)

DEFINE-ROUTE (NAME (TEMPLATE &KEY METHOD CONTENT-TYPE) &BODY BODY)

MOUNT-MODULE (NAME (MODULE) &BODY BODY)

WITH-CONTEXT (CONTEXT &BODY BODY)

Private

Undocumented

WITH-MODULE (MODULE &BODY BODY)

WITH-MODULE-CONTEXT (MODULE &BODY BODY)

GENERIC-FUNCTION

Public

FINALIZE-MODULE-INSTANCE (MODULE CONTEXT)

Call for module finalization

INITIALIZE-MODULE-INSTANCE (MODULE CONTEXT)

Call for module initialization

RENDER-OBJECT (DESIGNER OBJECT)

Render object via designer

Undocumented

MAKE-ROUTE-URL (OBJ ARGS)

PROCESS-ROUTE (ROUTE BINDINGS)

Private

CONNECT-MODULE (MODULE MAPPER)

Adds routes of the module to the routing table

MODULE-FIND-ROUTE (MODULE ROUTE-SYMBOL)

Find the route in the MODULE

Undocumented

ADD-TOPLEVEL-MODULE (MODULE HOSTNAME PORT &KEY CONTEXT URL RENDER-METHOD DECORATORS)

PARSE-DECLARATIONS (TYPE DECLARATIONS TRAITS)

SLOT-ACCESSOR

Public

Undocumented

ROUTE-SYMBOL (OBJECT)

Private

MODULE-CONTEXT (MODULE)

The Context of the MODULE

MODULE-MOUNT-URL (MODULE)

The Return URL where the MODULE is mounted

MODULE-PARENT (MODULE)

The Parent of the MODULE

MODULE-RENDER-METHOD (MODULE)

The Return MODULE render method

MODULE-SYMBOL (MODULE)

The MODULE identifier

Undocumented

CONTEXT-PROTOTYPE (OBJECT)

SETFCONTEXT-PROTOTYPE (NEW-VALUE OBJECT)

CONTEXT-VALUES (OBJECT)

SETFCONTEXT-VALUES (NEW-VALUE OBJECT)

CONTEXT-VARS (OBJECT)

SETFCONTEXT-VARS (NEW-VALUE OBJECT)

RESTAS-REQUEST-BINDINGS (OBJECT)

SETFRESTAS-REQUEST-BINDINGS (NEW-VALUE OBJECT)

ROUTE-ARBITRARY-REQUIREMENT (OBJECT)

ROUTE-HEADERS (OBJECT)

ROUTE-MODULE (ROUTE)

ROUTE-REQUIRED-METHOD (OBJECT)

VHOST-HOSTNAME (OBJECT)

VHOST-PORT (OBJECT)

VARIABLE

Public

*MAX-DEBUGGING-THREADS*

Maximum number of simultaneous active calls invoke-debuger

Undocumented

*DEFAULT-HOST-REDIRECT*

*MODULE*

*NGINX-INTERNAL-ALIAS*

*NGINX-INTERNAL-LOCATION*

*NGINX-INTERNAL-ROOT*

*ROUTE*

Private

*DEBUGGING-THREADS*

List debugged threads

*DEBUGGING-THREADS-LOCK*

A global lock to prevent two threads from modifying *debugging-threads* at the same time

Undocumented

*ACCEPTORS*

*CATCH-ERRORS-P*

*PKGMODULES-TRAITS*

*VHOSTS*

CLASS

Public

Undocumented

RESTAS-ACCEPTOR

RESTAS-SSL-ACCEPTOR

ROUTE

Private

Undocumented

APACHE-XSENDFILE-ROUTE

NGINX-ACCEL-REDIRECT-ROUTE

NO-CACHE-ROUTE

PKGMODULE

RESTAS-ACCEPTOR-MIXIN

RESTAS-CONTEXT

RESTAS-REQUEST

VHOST