class Symphony::HttpServer
- Symphony::HttpServer
- Symphony::BackgroundService
- Reference
- Object
Defined in:
symphony/http/http_server.crConstant Summary
-
AccessLog =
Log.for("request")
-
Log =
Symphony::Log.for(HttpServer)
Constructors
Instance Method Summary
- #alive? : Bool
- #format_access_log(ctx : HTTP::Server::Context) : String
- #interrupt : Nil
- #join(timeout : Time::Span | Nil = nil) : Nil
-
#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
). -
#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
). - #skip_logging(ctx) : Bool
- #start : Nil
Instance methods inherited from class Symphony::BackgroundService
alive? : Bool
alive?,
interrupt : Nil
interrupt,
join(timeout : Time::Span | Nil = nil) : Nil
join,
start : Nil
start
Macros inherited from class Symphony::BackgroundService
service_implemented_by(service)
service_implemented_by
Constructor Detail
def self.new(host : String = "127.0.0.1", port : Int32 = 8080, health_check : HealthCheck | Nil = nil, *, reuse_port : Bool = false, &handler : HTTP::Server::Context -> )
#
Instance Method Detail
def 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
).
def 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
).