{"id":15032993,"url":"https://github.com/ruby/webrick","last_synced_at":"2025-05-13T22:04:37.716Z","repository":{"id":19266820,"uuid":"86644608","full_name":"ruby/webrick","owner":"ruby","description":"HTTP server toolkit","archived":false,"fork":false,"pushed_at":"2025-04-21T23:54:02.000Z","size":836,"stargazers_count":293,"open_issues_count":23,"forks_count":102,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-25T03:37:14.511Z","etag":null,"topics":["ruby","webrick"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-30T01:16:49.000Z","updated_at":"2025-04-21T23:54:05.000Z","dependencies_parsed_at":"2024-06-07T05:28:17.480Z","dependency_job_id":"f2565024-b4d9-4d58-beb0-3523bb723992","html_url":"https://github.com/ruby/webrick","commit_stats":{"total_commits":543,"total_committers":63,"mean_commits":8.619047619047619,"dds":0.8526703499079189,"last_synced_commit":"c7712df6d318cef80d0aa631232c17467984bdf6"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fwebrick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fwebrick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fwebrick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruby%2Fwebrick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruby","download_url":"https://codeload.github.com/ruby/webrick/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250887507,"owners_count":21503033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby","webrick"],"created_at":"2024-09-24T20:19:53.635Z","updated_at":"2025-04-28T15:28:45.006Z","avatar_url":"https://github.com/ruby.png","language":"Ruby","readme":"# Webrick\n\nWEBrick is an HTTP server toolkit that can be configured as an HTTPS server, a proxy server, and a virtual-host server.\n\nWEBrick features complete logging of both server operations and HTTP access.\n\nWEBrick supports both basic and digest authentication in addition to algorithms not in RFC 2617.\n\nA 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.\n\nWEBrick also includes tools for daemonizing a process and starting a process at a higher privilege level and dropping permissions.\n\nWEBrick 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.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'webrick'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install webrick\n\n## Usage\n\nTo create a new WEBrick::HTTPServer that will listen to connections on port 8000 and serve documents from the current user's public_html folder:\n\n```ruby\nrequire 'webrick'\n\nroot = File.expand_path '~/public_html'\nserver = WEBrick::HTTPServer.new :Port =\u003e 8000, :DocumentRoot =\u003e root\n```\n\nTo run the server you will need to provide a suitable shutdown hook as\nstarting the server blocks the current thread:\n\n```ruby\ntrap 'INT' do server.shutdown end\n\nserver.start\n```\n\n## Development\n\nAfter 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.\n\nTo 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](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/ruby/webrick.\n\n## License\n\nThe gem is available as open source under the terms of the [2-Clause BSD License](https://opensource.org/licenses/BSD-2-Clause).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fwebrick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruby%2Fwebrick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruby%2Fwebrick/lists"}