1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/lib/puma.rb
2011-09-23 20:46:33 -07:00

44 lines
992 B
Ruby

# Standard libraries
require 'socket'
require 'tempfile'
require 'yaml'
require 'time'
require 'etc'
require 'uri'
require 'stringio'
# Compiled Puma extension
# support multiple ruby version (fat binaries under windows)
begin
RUBY_VERSION =~ /(\d+.\d+)/
require "#{$1}/http11"
rescue LoadError
require 'http11'
end
# Gem conditional loader
require 'puma/gems'
require 'thread'
# Ruby Puma
require 'puma/command'
require 'puma/configurator'
require 'puma/const'
require 'puma/http_request'
require 'puma/server'
# Puma module containing all of the classes (include C extensions)
# for running a Puma web server. It contains a minimalist HTTP server
# with just enough functionality to service web application requests
# fast as possible.
module Puma
# Thrown at a thread when it is timed out.
class TimeoutError < RuntimeError; end
class BodyReadError < RuntimeError; end
end
Puma::Gems.require "puma_experimental",
">=#{Puma::Const::PUMA_VERSION}"