ningle

API Reference

ningle

Super micro framework for Common Lisp.

NINGLE

No exported symbols.

Also exports

  • NINGLE.CONTEXT:CONTEXT
  • NINGLE.APP:ROUTE
  • NINGLE.CONTEXT:*REQUEST*
  • NINGLE.CONTEXT:*RESPONSE*
  • NINGLE.CONTEXT:*SESSION*
  • NINGLE.CONTEXT:*CONTEXT*
  • NINGLE.CONTEXT:MAKE-RESPONSE
  • MYWAY.MAPPER:NEXT-ROUTE
  • NINGLE.APP:REQUIREMENT
  • NINGLE.APP:<APP>
  • NINGLE.APP:NOT-FOUND
  • NINGLE.CONTEXT:WITH-CONTEXT-VARIABLES
  • NINGLE.CONTEXT:MAKE-REQUEST
  • NINGLE.APP:CLEAR-ROUTING-RULES

NINGLE.APP

  • Class <APP>  (LACK-COMPONENT)
    Base class for Ningle Application. All Ningle Application must inherit this class.
    MAPPER   Accessor: MAPPER
    REQUIREMENTS   Accessor: APP-REQUIREMENTS
  • Generic-Function ROUTE (app string-url-rule &rest args &key method identifier regexp &allow-other-keys)
  • Method ROUTE ((this <app>) string-url-rule &rest args &key (method :get) identifier regexp &allow-other-keys)
  • Method ROUTE ((this <app>) string-url-rule &rest args &key (method :get) identifier regexp &allow-other-keys)
  • Method ROUTE ((this <app>) string-url-rule &rest args &key (method :get) identifier regexp &allow-other-keys)
  • Generic-Function (setf ROUTE) (controller app string-url-rule &rest args &key method identifier regexp &allow-other-keys)
  • Function REQUIREMENT (app name)
  • Function (setf REQUIREMENT) (fn app name)
  • Generic-Function NOT-FOUND (app)
    An action when no routing rules are found.
  • Method NOT-FOUND ((this <app>))
  • Function CLEAR-ROUTING-RULES (app)

NINGLE.ROUTE

  • Class NINGLE-ROUTE  (ROUTE)
    REQUIREMENTS   Accessor: ROUTE-REQUIREMENTS
    COMPILED-REQUIREMENTS   Accessor: ROUTE-COMPILED-REQUIREMENTS
    CONTROLLER   Accessor: ROUTE-CONTROLLER

NINGLE.CONTEXT

  • Variable *CONTEXT*
    nil
    Special variable to store Ningle Context, a hash table. Don't set to this variable directly. This is designed to be bound in lexical let.
  • Variable *REQUEST*
    nil
    Special variable to store Ningle Request, a instance of `<request>' in Ningle.Request package. Don't set to this variable directly. This is designed to be bound in lexical let.
  • Variable *RESPONSE*
    nil
    Special variable to store Ningle Response, a instance of `<response>' in Ningle.Response package. Don't set to this variable directly. This is designed to be bound in lexical let.
  • Variable *SESSION*
    nil
    Special variable to store session. Don't set to this variable directly. This is designed to be bound in lexical let.
  • Function MAKE-CONTEXT (app env)
    Create a new Context.
  • Generic-Function MAKE-REQUEST (app env)
    Make a request object. See ningle.app for the default behavior.
  • Generic-Function MAKE-RESPONSE (app &optional status headers body)
    Make a response object. See ningle.app for the default behavior.
  • Function CONTEXT (&optional key)
    Access to current context. If key is specified, return the value in current context. If not, just return a current context. Example: (context) ;=> #<HASH-TABLE :TEST EQL size 0/60 #x3020025FF5FD> (context :request) ;=> #<CAVEMAN.REQUEST:<REQUEST> #x3020024FCCFD>
  • Function (setf CONTEXT) (val key)
  • Macro WITH-CONTEXT-VARIABLES ((&rest vars) &body body)

ningle-test

No packages.