module Marten::Server

Overview

Wrapper around the Marten server.

Defined in:

marten/server.cr
marten/server/context.cr
marten/server/handlers/concerns/handler_response_converter.cr
marten/server/handlers/error.cr
marten/server/handlers/logger.cr
marten/server/handlers/middleware.cr
marten/server/handlers/routing.cr

Class Method Summary

Class Method Detail

def self.addresses : Array(String) #

Returns the addresses on which the server is listening.


[View source]
def self.handlers #

Returns the handlers of the server.


[View source]
def self.instance : ::HTTP::Server #

Returns the global HTTP server instance.


[View source]
def self.setup : Nil #

Setups the server (TCP binding).


[View source]
def self.start : Nil #

Starts the server.


[View source]
def self.stop : Nil #

Stops the server.


[View source]