Sha256: 09aff8f88177f795aadaf1dd2ec85b50a2ff8b9363d2ef3aab98085c42bf4131
Contents?: true
Size: 322 Bytes
Versions: 4
Compression:
Stored size: 322 Bytes
Contents
require 'rubygems' require 'thin' class SimpleAdapter def call(env) [ 200, { 'Content-Type' => 'text/plain' }, ["hello!\n"] ] end end app = Rack::URLMap.new('/test' => SimpleAdapter.new, '/files' => Rack::File.new('.')) Thin::Server.new('0.0.0.0', 3000, app).start!
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
thin-0.6.0-x86-mswin32-60 | example/adapter.rb |
thin-0.6.1-x86-mswin32-60 | example/adapter.rb |
thin-0.6.0 | example/adapter.rb |
thin-0.6.1 | example/adapter.rb |