# # Dependencies # require 'rack' require 'rack/builder' class Rad::Http attr_accessor :host, :port, :static, :url_root, :default_format, :session require_attr :host, :port, :url_root, :default_format def static?; !!@static end attr_writer :public_path def public_path @public_path || "#{rad.runtime_path}/public" end def public_path?; !!public_path end end %w( rack_adapter fixes ).each{|f| require "rad/http/_support/rack/#{f}"} # # Libraries # %w( _request _response _http_adapter _http ).each{|f| require "rad/http/#{f}"}