Sha256: 0c8db5f81fdd669092096dbff6d451dd0f763a23d6973f9a5efbd6083c17dd6d

Contents?: true

Size: 472 Bytes

Versions: 31

Compression:

Stored size: 472 Bytes

Contents

$:.unshift File.expand_path('../', __FILE__)
require 'ruby_http_parser'

Http = HTTP

module HTTP
  class Parser
    class << self
      attr_reader :default_header_value_type

      def default_header_value_type=(val)
        if (val != :mixed && val != :strings && val != :arrays)
          raise ArgumentError, "Invalid header value type"
        end
        @default_header_value_type = val
      end
    end
  end
end

HTTP::Parser.default_header_value_type = :mixed

Version data entries

31 entries across 31 versions & 8 rubygems

Version Path
http_parser.rb-0.6.0.beta.2 lib/http_parser.rb
http_parser.rb-0.6.0.beta.1 lib/http_parser.rb
jls-http_parser.rb-0.5.3.1 lib/http_parser.rb
http_parser.rb-0.5.3 lib/http_parser.rb
http_parser.rb-0.5.3-x86-mswin32-60 lib/http_parser.rb
http_parser.rb-0.5.3-x86-mingw32 lib/http_parser.rb
http_parser.rb-0.5.3-java lib/http_parser.rb
http_parser.rb-0.5.2-x86-mswin32-60 lib/http_parser.rb
http_parser.rb-0.5.2-x86-mingw32 lib/http_parser.rb
http_parser.rb-0.5.2 lib/http_parser.rb
http_parser.rb-0.5.2-java lib/http_parser.rb