Orion::Router
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.
Constructors
Class methods
Instance methods
Bind TLS with an address
bind(*, tls : OpenSSL::SSL::Context::Server, host = ::Socket::IPAddress::LOOPBACK, port = nil, reuse_port = false)
Bind TLS with a host and port
bind(*, tls : Nil = nil, host = ::Socket::IPAddress::LOOPBACK, port = nil, reuse_port = false)
Bind TCP to a host and port
Bind TCP to a Socket::IPAddress
bind(*, tls = nil, path)
Sourcecall(*args, **options)
Sourcecall(*args, **options, &)
Sourcehandlers
Sourcelisten(*, workers, **opts)
Listen clients using multiple workers A good suggestion is to use System.cpu_count
request_processor
Sourceuse(handler : HTTP::Handler)
Sourceuse(handler)
Source