Sha256: 9873b32f79bd7218d05ffa788345cccce05780ecaf996212439c2670c0e9f9e1

Contents?: true

Size: 850 Bytes

Versions: 1

Compression:

Stored size: 850 Bytes

Contents

# WServer provides support for Web Servers (via Rack)

require 'rack'
require 'rack/builder'

require 'rad/conveyor'

# support
[  
  'rack/request',
  'rack/response',
  'rack/rack_adapter',
  'rack/fixes'
].each{|f| require "rad/http/support/#{f}"}

# http
[
  # 'config',
  'http',
  'http_adapter',
  'processors/prepare_params',
  'processors/http_writer',
  'processors/http_logger',
  'processors/evaluate_format'
].each{|f| require "rad/http/#{f}"}

module Rad
  autoload :StaticFiles, 'rad/http/middleware/static_files'
end

Rad.metaclass_eval do
  delegate :initialize_rack, to: Rad::RackAdapter  
  delegate :call, to: Rad::HTTPAdapter
  delegate :ensure_public_symlink, to: Rad::HTTP
end


# 
# Initialization
# 
Rad::Config::DEFAULTS.merge!(
  host: '0.0.0.0',
  port: 4000,
  
  static: true,
  url_root: '',
  default_format: 'html',
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rad_core-0.0.13 lib/rad/http.rb