Sha256: c1b7ec772e6064dc86395f72ddffedaf605073adca0b981efcca6c19d0a8f0a0

Contents?: true

Size: 735 Bytes

Versions: 1

Compression:

Stored size: 735 Bytes

Contents

require 'rack'

# HTTP Accept* for Ruby/Rack.
#
# http://mjijackson.com/rack-accept
module Rack::Accept
  VERSION = [0, 4, 3]

  # Returns the current version of Rack::Accept as a string.
  def self.version
    VERSION.join('.')
  end

  # Enables Rack::Accept to be used as a Rack middleware.
  def self.new(app, &block)
    Context.new(app, &block)
  end

  autoload :Charset,    'rack/accept/charset'
  autoload :Context,    'rack/accept/context'
  autoload :Encoding,   'rack/accept/encoding'
  autoload :Header,     'rack/accept/header'
  autoload :Language,   'rack/accept/language'
  autoload :MediaType,  'rack/accept/media_type'
  autoload :Request,    'rack/accept/request'
  autoload :Response,   'rack/accept/response'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-accept-0.4.3 lib/rack/accept.rb