class

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.

Source

Instance methods

address
Source
before_all
Source
close
Source
get(path, &handler : HTTP::Request, HTTP::Server::Response -> Nil)
Source
join
Source
port

Port number the server is listening on

Source
post(path, &handler : HTTP::Request, HTTP::Server::Response -> Nil)
Source
start
Source
unknown_get
Source