WebServer
Inherits Reference < Object
Constructors
new(port : Int32 | Nil = nil, bind_to_all_nics = false)
Listen on specified port, or bind to an unused port which you can identify after via #port method.
Instance methods
address
Sourcebefore_all
Sourceclose
Sourceget(path, &handler : HTTP::Request, HTTP::Server::Response -> Nil)
Sourcejoin
Sourcepost(path, &handler : HTTP::Request, HTTP::Server::Response -> Nil)
Sourcestart
Sourceunknown_get
Source