WEBrick::HTTPServlet::AbstractServlet
Mounts a proc at a path that accepts a request and response.
Instead of mounting this servlet with WEBrick::HTTPServer#mount use WEBrick::HTTPServer#mount_proc:
WEBrick::HTTPServer#mount
WEBrick::HTTPServer#mount_proc
server.mount_proc '/' do |req, res| res.body = 'it worked!' res.status = 200 end
This page was generated for Ruby 2.5.0
Ruby-doc.org is a service of James Britt and Neurogami, an erratic source of art, music, and technology.
Generated with Ruby-doc Rdoc Generator 0.42.0.