class Onyx::HTTP::Singleton

Overview

The singleton instance of an Onyx HTTP server wrapper. It is not initialized unless called.

Defined in:

onyx/http.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.instance #

The singleton instance.


[View source]

Instance Method Detail

def handlers(cors = nil) #

The default set of handlers. See its source code to find out which handlers in particular. You can in theory modify these handlers in the Onyx.listen block.


[View source]
def renderer : HTTP::Handler #

The singleton renderer instance.


[View source]
def renderer=(renderer) #

The singleton renderer instance.


[View source]
def router : Onyx::HTTP::Middleware::Router #

The singleton HTTP::Router instance.


[View source]
def router=(router) #

The singleton HTTP::Router instance.


[View source]