new(config={}, default=Config::HTTP) public

Creates a new HTTP server according to config

An HTTP server uses the following attributes:


An array of access logs. See WEBrick::AccessLog


Local address for the server to bind to


Root path to serve files from


Options for the default HTTPServlet::FileHandler


The HTTP version of this server


Port to listen on


Called with a request and response before each request is serviced.


Maximum time to wait between requests


Array of alternate names for this server for virtual hosting


Name for this server for virtual hosting

Show source
Register or log in to add new notes.