summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib')
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http/parser.rb1
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http_parser.rb21
2 files changed, 22 insertions, 0 deletions
diff --git a/vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http/parser.rb b/vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http/parser.rb
new file mode 100644
index 0000000..4881b03
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http/parser.rb
@@ -0,0 +1 @@
+require 'http_parser'
diff --git a/vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http_parser.rb b/vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http_parser.rb
new file mode 100644
index 0000000..c69f7a0
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/http_parser.rb-0.8.1/lib/http_parser.rb
@@ -0,0 +1,21 @@
+$:.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