class

Symphony::HttpServer

Inherits Symphony::BackgroundService < Reference < Object

Constants

AccessLog = Log.for("request")
Log = Symphony::Log.for(HttpServer)

Constructors

new(host : String = "127.0.0.1", port : Int32 = 8080, health_check : HealthCheck | Nil = nil, *, reuse_port : Bool = false, &handler : HTTP::Server::Context -> )
Source

Instance methods

alive?
Source
interrupt
Source
join(timeout : Time::Span | Nil = nil) : Nil
Source
max_request_to_always_log

This allows to log the first requests fully, but afterwards skip them unless they seems important (defined by skip_logging).

Source
max_request_to_always_log=(max_request_to_always_log : UInt64)

This allows to log the first requests fully, but afterwards skip them unless they seems important (defined by skip_logging).

Source
skip_logging(ctx) : Bool
Source
start
Source