Index

AnyTemplate

A template that can be called by a TemplateRenderer.

Application

A web server application that can route requests to handler functions or annotated controllers, and serve static assets.

ControllerAnnotation

The annotation class for the controller() annotation.

DefaultFlash
Flash

A holder for special messages stored in the session, meant to be used exactly once.

HaltException
Handler

A function capable of handling a request.

Handler
Node
RedirectException
RequestDispatcher
RouteAnnotation

The annotation class for the route() annotation.

SessionAnnotation

The annotation class for the session() annotation.

Template
WSHandler

A handler that can react to WebSocket events.

WebSocketHandler

A handler for WebSockets that reacts to advanced events.

annotationScanner
bind()

Tells gyokuro to bind controllers scanned in pkgToScan to the given context root. T

clearRoutes()

Clears every registered route.

connect()

Declares a new CONNECT route for the given path and handler.

controller()

Declares a class or an object as a controller, allowing routes to be scanned.

delete()

Declares a new DELET route for the given path and handler.

get()

Declares a new GET route for the given path and handler.

halt()

Interrupts the current handler immediately, resulting in an HTTP response with code errorCode and a body equal to

head()

Declares a new HEAD route for the given path and handler.

mimeParse

Adapted from MIMEParse.

newFlash()

Creates a new instance of a Flash. Y

options()

Declares a new OPTIONS route for the given path and handler.

patch()

Declares a new PATCH route for the given path and handler.

patch

Workaround until the SDK contains it.

post()

Declares a new POST route for the given path and handler.

put()

Declares a new PUT route for the given path and handler.

redirect()

Interrupts the current handler immediately, and asks the client browser to redirect to the specified url.

render()

Renders a template that will be returned as the response body.

route()

Declares a partial path associated to a class or a function. R

router
serve()

Tells gyokuro to serve static assets located in the filesystem folder path under the given context root. F

session()

Declares that a handler parameter should be retrieved from the current HTTP session instead of GET/POST data.

trace()

Declares a new TRACE route for the given path and handler.

websocket()

Registers a new web socket handler for the given path. T