Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Opium.App
SourceAn opium app provides a set of convenience functions and types to construct a rock app.
An opium app is a simple builder wrapper around a rock app
to_handler t
converts the app t to a Rock
handler.
A builder is a function that transforms an app
by adding some functionality. Builders are usuallys composed with a base app using (|>) to create a full app
backlog
specifies the maximum number of clients that can have a pending connection request to the Opium server.
not_found
accepts a regular Opium handler that will be used instead of the default 404 handler.
A route is a function that returns a buidler that hooks up a handler to a url mapping
Method specific routes
any methods
will bind a route to any http method inside of methods
all methods
will bind a route to a URL regardless of the http method. You may escape the actual method used from the request passed.
Start an opium server. The thread returned can be cancelled to shutdown the server