public
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/macournoyer/thin.git
thin / lib / thin.rb
100644 51 lines (42 sloc) 1.372 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
$:.unshift File.expand_path(File.dirname(__FILE__))
 
require 'fileutils'
require 'timeout'
require 'stringio'
require 'time'
 
require 'rubygems'
require 'eventmachine'
 
require 'thin/version'
require 'thin/statuses'
 
module Thin
  autoload :Command, 'thin/command'
  autoload :Connection, 'thin/connection'
  autoload :Daemonizable, 'thin/daemonizing'
  autoload :Logging, 'thin/logging'
  autoload :Headers, 'thin/headers'
  autoload :Request, 'thin/request'
  autoload :Response, 'thin/response'
  autoload :Runner, 'thin/runner'
  autoload :Server, 'thin/server'
  autoload :Stats, 'thin/stats'
  
  module Backends
    autoload :Base, 'thin/backends/base'
    autoload :SwiftiplyClient, 'thin/backends/swiftiply_client'
    autoload :TcpServer, 'thin/backends/tcp_server'
    autoload :UnixServer, 'thin/backends/unix_server'
  end
  
  module Controllers
    autoload :Cluster, 'thin/controllers/cluster'
    autoload :Controller, 'thin/controllers/controller'
    autoload :Service, 'thin/controllers/service'
  end
end
 
require 'rack'
require 'rack/adapter/loader'
 
module Rack
  module Handler
    autoload :Thin, 'rack/handler/thin'
  end
  module Adapter
    autoload :Rails, 'rack/adapter/rails'
  end
end