https://github.com/ruby/webrick
HTTP server toolkit
https://github.com/ruby/webrick
Keywords
ruby webrick
Keywords from Contributors
repl rubygems bigdecimal activerecord debugger debugging-tool strscan activejob mvc documentation-tool
Last synced: about 10 hours ago
JSON representation
Repository metadata
HTTP server toolkit
- Host: GitHub
- URL: https://github.com/ruby/webrick
- Owner: ruby
- License: bsd-2-clause
- Created: 2017-03-30T01:16:49.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2026-02-10T02:00:32.000Z (22 days ago)
- Last Synced: 2026-02-24T13:31:22.643Z (7 days ago)
- Topics: ruby, webrick
- Language: Ruby
- Homepage:
- Size: 876 KB
- Stars: 307
- Watchers: 42
- Forks: 111
- Open Issues: 25
- Releases: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
README.md
Webrick
WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server.
WEBrick features complete logging of both server operations and HTTP access.
WEBrick supports both basic and digest authentication in addition to algorithms not in RFC 2617.
A WEBrick server can be composed of multiple WEBrick servers or servlets to provide differing behavior on a per-host or per-path basis. WEBrick includes servlets for handling CGI scripts, ERB pages, Ruby blocks and directory listings.
WEBrick also includes tools for daemonizing a process and starting a process at a higher privilege level and dropping permissions.
WEBrick is suitable for use in testing and for development. However, while the developers of WEBrick will attempt to fix security issues, they do not encourage the use of WEBrick to serve production web applications that may be subject to hostile input.
Installation
Add this line to your application's Gemfile:
gem 'webrick'
And then execute:
$ bundle
Or install it yourself as:
$ gem install webrick
Usage
To create a new WEBrick::HTTPServer that will listen to connections on port 8000 and serve documents from the current user's public_html folder:
require 'webrick'
root = File.expand_path '~/public_html'
server = WEBrick::HTTPServer.new :Port => 8000, :DocumentRoot => root
To run the server you will need to provide a suitable shutdown hook as
starting the server blocks the current thread:
trap 'INT' do server.shutdown end
server.start
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/ruby/webrick.
License
The gem is available as open source under the terms of the 2-Clause BSD License.
Owner metadata
- Name: The Ruby Programming Language
- Login: ruby
- Email: info@ruby-lang.org
- Kind: organization
- Description: Repositories related to the Ruby Programming language
- Website: https://www.ruby-lang.org/
- Location: Matsue, Japan
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/210414?v=4
- Repositories: 171
- Last ynced at: 2023-04-09T03:40:20.875Z
- Profile URL: https://github.com/ruby
GitHub Events
Total
- Release event: 3
- Delete event: 15
- Member event: 1
- Pull request event: 44
- Fork event: 12
- Issues event: 1
- Watch event: 25
- Issue comment event: 29
- Push event: 25
- Pull request review comment event: 21
- Pull request review event: 26
- Create event: 19
Last Year
- Release event: 1
- Delete event: 5
- Pull request event: 19
- Fork event: 5
- Issues event: 1
- Watch event: 14
- Issue comment event: 11
- Push event: 11
- Pull request review event: 18
- Pull request review comment event: 17
- Create event: 7
Committers metadata
Last synced: 3 days ago
Total Commits: 572
Total Committers: 69
Avg Commits per committer: 8.29
Development Distribution Score (DDS): 0.86
Commits in past year: 25
Committers in past year: 8
Avg Commits per committer in past year: 3.125
Development Distribution Score (DDS) in past year: 0.44
| Name | Commits | |
|---|---|---|
| gotoyuzo | g****o@b****e | 80 |
| Hiroshi SHIBATA | h****t@r****g | 78 |
| nobu | n****u@b****e | 59 |
| normal | n****l@b****e | 43 |
| naruse | n****e@b****e | 34 |
| akr | a****r@b****e | 33 |
| Jeremy Evans | c****e@j****t | 29 |
| Kazuhiro NISHIYAMA | zn@m****m | 25 |
| dependabot[bot] | 4****] | 22 |
| Yusuke Endoh | m****e@r****g | 15 |
| drbrain | d****n@b****e | 15 |
| nahi | n****i@b****e | 11 |
| usa | u****a@b****e | 11 |
| matz | m****z@b****e | 9 |
| John W Higgins | w****v@g****m | 8 |
| Samuel Williams | s****s@o****z | 8 |
| a_matsuda | a****a@b****e | 8 |
| Olle Jonsson | o****n@g****m | 6 |
| Takashi Kokubun | t****n@g****m | 4 |
| ko1 | k****1@b****e | 4 |
| shyouhei | s****i@b****e | 4 |
| zzak | z****k@b****e | 4 |
| ngoto | n****o@b****e | 3 |
| Mathieu Jobin | m****n | 3 |
| marcandre | m****e@b****e | 3 |
| ooooooo_q | o****q | 2 |
| knu | k****u@b****e | 2 |
| ayumin | a****n@b****e | 2 |
| tenderlove | t****e@b****e | 2 |
| Jean Boussier | j****r@g****m | 2 |
| and 39 more... | ||
Committer domains:
- ruby-lang.org: 2
- shopify.com: 2
- jeremyevans.net: 1
- mbf.nifty.com: 1
- oriontransfer.co.nz: 1
- colby.fyi: 1
- sorah.jp: 1
- viewthespace.com: 1
- typ3.tech: 1
- headius.com: 1
- osyoyu.com: 1
- redhat.com: 1
- kjtsanaktsidis.id.au: 1
- mrkn.jp: 1
- me.com: 1
- pjkh.com: 1
- robfors.com: 1
Issue and Pull Request metadata
Last synced: 22 days ago
Total issues: 49
Total pull requests: 147
Average time to close issues: 2 months
Average time to close pull requests: about 1 month
Total issue authors: 41
Total pull request authors: 47
Average comments per issue: 2.33
Average comments per pull request: 0.71
Merged pull request: 118
Bot issues: 0
Bot pull requests: 26
Past year issues: 4
Past year pull requests: 24
Past year average time to close issues: 6 days
Past year average time to close pull requests: about 3 hours
Past year issue authors: 3
Past year pull request authors: 8
Past year average comments per issue: 1.5
Past year average comments per pull request: 0.42
Past year merged pull request: 16
Past year bot issues: 0
Past year bot pull requests: 15
Top Issue Authors
- kenballus (6)
- forthrin (3)
- headius (2)
- manihere (1)
- rdp (1)
- eregon (1)
- HoneyryderChuck (1)
- enescakir (1)
- micchickenburger (1)
- kan-datawow (1)
- Aetherus (1)
- niubl (1)
- mainsunshine01 (1)
- mtasaka (1)
- noraj (1)
Top Pull Request Authors
- jeremyevans (30)
- dependabot[bot] (26)
- znz (10)
- ioquatix (10)
- wishdev (8)
- hsbt (7)
- olleolleolle (4)
- nobu (4)
- paulownia (3)
- mame (3)
- casperisfine (2)
- thekuwayama (2)
- Athishpranav2003 (2)
- iurev (2)
- byroot (2)
Top Issue Labels
Top Pull Request Labels
- dependencies (26)
- github_actions (13)
Package metadata
- Total packages: 30
-
Total downloads:
- rubygems: 827,777,104 total
- Total docker downloads: 6,406,519,294
- Total dependent packages: 435 (may contain duplicates)
- Total dependent repositories: 46,333 (may contain duplicates)
- Total versions: 85
- Total maintainers: 7
- Total advisories: 12
gem.coop: webrick
WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server.
- Homepage: https://github.com/ruby/webrick
- Documentation: http://www.rubydoc.info/gems/webrick/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 1.9.2 (published 3 months ago)
- Last Synced: 2026-03-01T08:31:42.791Z (3 days ago)
- Versions: 18
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 413,795,909 Total
- Docker Downloads: 3,203,259,647
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.024%
- Docker downloads count: 0.037%
- Downloads: 0.059%
- Maintainers (6)
- Advisories:
rubygems.org: webrick
WEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server.
- Homepage: https://github.com/ruby/webrick
- Documentation: http://www.rubydoc.info/gems/webrick/
- Licenses: Ruby,BSD-2-Clause
- Latest release: 1.9.2 (published 3 months ago)
- Last Synced: 2026-03-02T03:02:24.033Z (2 days ago)
- Versions: 18
- Dependent Packages: 428
- Dependent Repositories: 46,333
- Downloads: 413,981,195 Total
- Docker Downloads: 3,203,259,647
-
Rankings:
- Docker downloads count: 0.03%
- Downloads: 0.083%
- Dependent packages count: 0.12%
- Dependent repos count: 0.156%
- Average: 1.121%
- Forks count: 2.738%
- Stargazers count: 3.601%
- Maintainers (6)
- Advisories:
proxy.golang.org: github.com/ruby/webrick
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ruby/webrick#section-documentation
- Licenses: bsd-2-clause
- Latest release: v1.9.2 (published 3 months ago)
- Last Synced: 2026-03-02T06:21:29.441Z (1 day ago)
- Versions: 16
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Forks count: 2.757%
- Stargazers count: 3.406%
- Average: 6.635%
- Dependent packages count: 9.576%
- Dependent repos count: 10.802%
alpine-v3.18: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r0 (published almost 3 years ago)
- Last Synced: 2026-02-06T07:15:48.707Z (26 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 7.003%
- Forks count: 12.373%
- Stargazers count: 15.64%
- Maintainers (1)
alpine-v3.18: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r0 (published almost 3 years ago)
- Last Synced: 2026-03-02T09:14:02.681Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 7.003%
- Forks count: 12.373%
- Stargazers count: 15.64%
- Maintainers (1)
alpine-v3.15: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.7.0-r0 (published over 4 years ago)
- Last Synced: 2026-02-06T07:04:17.962Z (26 days ago)
- Versions: 1
- Dependent Packages: 3
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 7.109%
- Dependent packages count: 8.198%
- Forks count: 9.283%
- Stargazers count: 10.954%
- Maintainers (1)
alpine-v3.16: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.7.0-r1 (published almost 4 years ago)
- Last Synced: 2026-03-01T01:00:18.909Z (3 days ago)
- Versions: 1
- Dependent Packages: 3
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 7.716%
- Dependent packages count: 9.004%
- Forks count: 9.92%
- Stargazers count: 11.939%
- Maintainers (1)
alpine-edge: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.9.1-r0 (published 11 months ago)
- Last Synced: 2026-02-23T14:01:20.621Z (8 days ago)
- Versions: 4
- Dependent Packages: 1
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 6.031%
- Average: 9.18%
- Forks count: 13.627%
- Stargazers count: 17.063%
- Maintainers (1)
alpine-edge: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.9.1-r0 (published 11 months ago)
- Last Synced: 2026-03-01T00:34:16.404Z (3 days ago)
- Versions: 4
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Average: 11.333%
- Forks count: 13.627%
- Dependent packages count: 14.641%
- Stargazers count: 17.063%
- Maintainers (1)
alpine-v3.15: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.7.0-r0 (published over 4 years ago)
- Last Synced: 2026-03-01T00:57:33.302Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Forks count: 9.365%
- Stargazers count: 10.954%
- Average: 11.476%
- Dependent packages count: 25.585%
- Maintainers (1)
alpine-v3.16: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.7.0-r1 (published almost 4 years ago)
- Last Synced: 2026-02-05T07:03:25.623Z (27 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Forks count: 9.92%
- Stargazers count: 11.939%
- Average: 12.292%
- Dependent packages count: 27.311%
- Maintainers (1)
alpine-v3.17: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.7.0-r1 (published almost 4 years ago)
- Last Synced: 2026-02-05T10:30:47.815Z (27 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Forks count: 11.867%
- Average: 13.397%
- Stargazers count: 14.466%
- Dependent packages count: 27.254%
- Maintainers (1)
alpine-v3.17: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.7.0-r1 (published almost 4 years ago)
- Last Synced: 2026-03-02T09:14:08.899Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Forks count: 11.867%
- Average: 13.397%
- Stargazers count: 14.466%
- Dependent packages count: 27.254%
- Maintainers (1)
alpine-v3.23: ruby-webrick
HTTP server toolkit for Ruby
alpine-v3.20: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r1 (published about 2 years ago)
- Last Synced: 2026-03-02T10:27:59.134Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.22: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.9.1-r0 (published 11 months ago)
- Last Synced: 2026-03-02T10:27:22.988Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.21: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r1 (published about 2 years ago)
- Last Synced: 2026-03-02T10:27:43.010Z (1 day ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
debian-13: ruby-webrick
- Homepage: https://github.com/ruby/webrick
- Documentation: https://packages.debian.org/trixie/ruby-webrick
- Licenses:
- Latest release: 1.9.1-1 (published 19 days ago)
- Last Synced: 2026-02-13T13:20:49.003Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
alpine-v3.23: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
alpine-v3.20: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r1 (published about 2 years ago)
- Last Synced: 2026-02-05T08:03:44.637Z (27 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.19: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r0 (published almost 3 years ago)
- Last Synced: 2026-02-03T13:26:00.167Z (28 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
debian-12: ruby-webrick
- Homepage: https://github.com/ruby/webrick
- Documentation: https://packages.debian.org/bookworm/ruby-webrick
- Licenses:
- Latest release: 1.8.1-1 (published 19 days ago)
- Last Synced: 2026-02-12T23:44:11.058Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
alpine-v3.19: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r0 (published almost 3 years ago)
- Last Synced: 2026-02-17T01:19:57.393Z (15 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.22: ruby-webrick
HTTP server toolkit for Ruby
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.9.1-r0 (published 11 months ago)
- Last Synced: 2026-03-01T01:16:37.951Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
alpine-v3.21: ruby-webrick-doc
HTTP server toolkit for Ruby (ri docs)
- Homepage: https://github.com/ruby/webrick
- Licenses: BSD-2-Clause
- Latest release: 1.8.1-r1 (published about 2 years ago)
- Last Synced: 2026-03-01T01:22:04.249Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
- Maintainers (1)
Dependencies
- rake >= 0
- test-unit >= 0
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- actions/checkout 1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 composite
- ruby/setup-ruby 8aeb6ff8030dd539317f8e1769a044873b56ea71 composite
- rubygems/release-gem 1c162a739e8b4cb21a676e97b087e8268d8fc40b composite
- step-security/harden-runner 95d9a5deda9de15063e7595e9719c11c38c90ae2 composite
Score: 32.74134812334157