Slide 8
Slide 8 text
Rackアプリケーションを動かすRackアプリケーションサーバ
8
- Puma, Pitchfork, Unicorn, Thin, …
class HelloRack
def call(env) # CGI-style environment
[
200, # status
{"content-type" => "text/html" }, # headers
["Hello, Rack!" ], # body
]
end
end
run HelloRack .new