net-http-server
A pure Ruby HTTP Server. (by postmodern)
mongrel
Mongrel on git (by mongrel)
net-http-server | mongrel | |
---|---|---|
1 | 2 | |
68 | 173 | |
- | - | |
10.0 | 10.0 | |
almost 2 years ago | over 14 years ago | |
Ruby | Ruby | |
MIT License | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
net-http-server
Posts with mentions or reviews of net-http-server.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-18.
-
Newb here: have you written your own web server? Seeking advice
Yes, I actually have. Implementing a basic HTTP parser isn't that difficult, once you implement the correct parsing rules from RFC 9110. If you want to fully support the HTTP protocol, you also have to implement things such as Chunked Transfer Encoding or Gzip Deflate.
mongrel
Posts with mentions or reviews of mongrel.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-18.
-
Newb here: have you written your own web server? Seeking advice
The other major thing you'll run into is performance. WEBrick's HTTP parsing code may look hairy but it is fast. Mongrel was the first Ruby HTTP server to implement it's HTTP parser in C using Ragel, which Thin, Unicorn, and Puma all copied; although there's a bug in the original Mongrel HTTP parser where it does not combine the values duplicate HTTP headers (yes, HTTP Header names can actually be repeated).
What are some alternatives?
When comparing net-http-server and mongrel you can also consider the following projects:
Thin - A very fast & simple Ruby web server
webrick - HTTP server toolkit
EventMachine - EventMachine: fast, simple event-processing library for Ruby programs
ruby_view_server
Puma - A Ruby/Rack web server built for parallelism
bindata - BinData - Reading and Writing Binary Data in Ruby
Rack - A modular Ruby web server interface.
http_tools - Pure Ruby HTTP parser and friends
Tokamak - SwiftUI-compatible framework for building browser apps with WebAssembly and native apps for other platforms