This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am lfv89 on github. | |
* I am lfv89 (https://keybase.io/lfv89) on keybase. | |
* I have a public key ASC8wxldsLmXlwxajFAuZi9B4ppzEC3HJwNl1crQxy3dpgo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rack' | |
gem 'puma' | |
end | |
require 'rack/handler/puma' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rack' | |
gem 'thin' | |
end | |
class ThinRackApp | |
def call(env) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rack', '1.6.10' | |
gem 'mongrel', '1.2.0.pre2' | |
end | |
class MongrelRackApp | |
def call(env) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'rack' | |
end | |
class WebrickRackApp | |
def call(env) | |
['200', {'Content-Type' => 'text/html'}, ['Hello, World!']] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'webrick' | |
server = WEBrick::HTTPServer.new(:Port => 3000) | |
server.mount_proc '/' do |req, res| | |
res.body = 'Hello, World!' | |
end | |
server.start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'mongrel', '1.2.0.pre2' | |
end | |
class BasicHttpHandler < Mongrel::HttpHandler | |
def process(request, response) | |
response.start(200) do |head, output| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'thin' | |
end | |
# literally a rack app | |
app = ->(env) { ['200', {'Content-Type' => 'text/html'}, ['Hello, World!']] } | |
Thin::Server.new('localhost', 3000, app, {}).start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile do | |
source 'https://rubygems.org' | |
gem 'puma' | |
end | |
require 'puma/configuration' | |
# literally a rack app |