struct Orion::Router
- Orion::Router
- Struct
- Value
- Object
Overview
The Orion::Router
is the workhorse that does the work when a request comes
into your application. It will take all of your defined routes and builds you
an application that can serve HTTP traffic. You can configure the router using
the config
in a single file router. Or by calling the .new
or .start
method within your app.
Defined in:
orion/router.crConstructors
Class Method Summary
- .start(tree : DSL::Tree, *, config : Config)
- .start(tree : DSL::Tree, *, autoclose : Bool = true, strip_extension : Bool = false, workers = nil, **bind_opts)
Instance Method Summary
- #bind(*args, **options)
- #bind(*args, **options, &)
- #call(*args, **options)
- #call(*args, **options, &)
- #handlers : Array(HTTP::Handler)
- #listen(*args, **options)
- #listen(*args, **options, &)
- #processor(*args, **options)
- #processor(*args, **options, &)
- #use(handler : HTTP::Handler)
- #use(handler)
-
#visualize
Visualize the route tree
Constructor Detail
Class Method Detail
def self.start(tree : DSL::Tree, *, autoclose : Bool = true, strip_extension : Bool = false, workers = nil, **bind_opts)
#