GenRouter (gen_router v0.1.10)
Router to parse messages, modeled by the idea of simplified Plug.Conn router.
Summary
Functions
Custom router factory
Defines default route or a route inside a pipeline.
Match specific route in scope of routes.
Defines a pipeline to send the connection through.
Defines a plug pipeline.
Defines a plug inside a pipeline.
Defines scope of routers with pipelines.
Types
Functions
Custom router factory
Defines default route or a route inside a pipeline.
See pipeline/2
for more information.
@spec match_in_scope( module(), atom(), [route()], [atom()], String.t(), GenRouter.Conn.t(), Keyword.t() ) :: GenRouter.Conn.t()
Match specific route in scope of routes.
We ensure that all paths and suffixs are matched with slash for consistency.
Defines a pipeline to send the connection through.
See pipeline/2
for more information.
Defines a plug pipeline.
Pipelines are defined at the router root and can be used from any scope.
Defines a plug inside a pipeline.
See pipeline/2
for more information.
Defines scope of routers with pipelines.