myway

API Reference

myway

Sinatra-compatible routing library.

MYWAY

  • Function CONNECT (mapper url fn &key (method '(:get)) regexp name)
  • Function FIND-ROUTE (mapper url &rest args &key method regexp name (route-class 'route) &allow-other-keys)
  • Variable *ENV*
    nil
  • Function TO-APP (mapper)

Also exports

  • MYWAY.MAPPER:MAKE-MAPPER
  • MYWAY.MAPPER:MAPPER
  • MYWAY.ROUTE:MATCH-ROUTE
  • MYWAY.MAPPER:DISPATCH
  • MYWAY.ROUTE:ROUTE-HANDLER
  • MYWAY.ROUTE:EQUAL-ROUTE
  • MYWAY.ROUTE:URL-FOR
  • MYWAY.MAPPER:NEXT-ROUTE
  • MYWAY.MAPPER:CLEAR-ROUTES
  • MYWAY.MAPPER:ADD-ROUTE
  • MYWAY.ROUTE:ROUTE-NAME
  • MYWAY.ROUTE:ROUTE
  • MYWAY.MAPPER:MAPPER-ROUTES

MYWAY.RULE

  • Struct RULE
    METHODS
    URL
    REGEX
    FORMAT-STRING
    PARAM-KEYS
  • Struct REGEX-RULE
    No slots.
  • Function MAKE-RULE (url &key (method :get) regexp)
  • Function MATCH-RULE (rule method url-string &key allow-head)
  • Function EQUAL-RULE (rule1 rule2)
  • Generic-Function RULE-URL-FOR (rule params)
  • Method RULE-URL-FOR ((rule regex-rule) params)
  • Method RULE-URL-FOR ((rule regex-rule) params)
  • Method RULE-URL-FOR ((rule regex-rule) params)
  • Method RULE-URL-FOR ((rule rule) params)
  • Method RULE-URL-FOR ((rule rule) params)
  • Method RULE-URL-FOR ((rule rule) params)

MYWAY.ROUTE

  • Class ROUTE
    NAME   Accessor: ROUTE-NAME
    RULE   Accessor: ROUTE-RULE
    HANDLER   Accessor: ROUTE-HANDLER
  • Generic-Function EQUAL-ROUTE (route1 route2)
  • Method EQUAL-ROUTE ((route1 route) (route2 route))
  • Method EQUAL-ROUTE ((route1 route) (route2 route))
  • Method EQUAL-ROUTE ((route1 route) (route2 route))
  • Generic-Function MATCH-ROUTE (route method url-string &key allow-head)
  • Method MATCH-ROUTE ((route route) method url-string &key allow-head)
  • Method MATCH-ROUTE ((route route) method url-string &key allow-head)
  • Method MATCH-ROUTE ((route route) method url-string &key allow-head)
  • Function URL-FOR (route params)

MYWAY.MAPPER

  • Struct MAPPER
    %ROUTES
  • Function MAKE-MAPPER (&key ((%routes %routes) (make-collector)))
  • Function CLEAR-ROUTES (mapper)
  • Function MAPPER-ROUTES (mapper)
  • Function MEMBER-ROUTE (mapper route)
  • Function ADD-ROUTE (mapper route)
  • Function NEXT-ROUTE
  • Function DISPATCH (mapper url-string &key (method :get) (allow-head t))

MYWAY.UTIL

  • Function MAKE-COLLECTOR

myway-test

No packages.