Registry / web-framework / webrick

webrick

JSON →
library1.9.2rbrubygemsunverified

An HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server.

gem install webrick
INSTALL
IMPORT
SIG · WEBRICK
W
webrick
web-frameworkrubyv1.9.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WEBrick
✓ require 'webrick'

Start a basic HTTP server serving static files

require 'webrick' server = WEBrick::HTTPServer.new(Port: 8080) server.mount '/', WEBrick::HTTPServlet::FileHandler, './public' trap('INT') { server.shutdown } server.start
Debug
Known issues
breakingWEBrick is not automatically loaded in Ruby 3.0+; you must add it to your Gemfile.
fix
Add gem 'webrick' to your Gemfile or install it explicitly.
affects: >= 3.0
Upgrade
Version history
1.9.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
webrick — gem install webrick · libregistry