lib/httpx/transcoder.rb in httpx-0.24.7 vs lib/httpx/transcoder.rb in httpx-1.0.0
- old
+ new
@@ -1,11 +1,9 @@
# frozen_string_literal: true
module HTTPX
module Transcoder
- using RegexpExtensions unless Regexp.method_defined?(:match?)
-
module_function
def normalize_keys(key, value, cond = nil, &block)
if (cond && cond.call(value))
block.call(key.to_s, value)
@@ -88,5 +86,7 @@
require "httpx/transcoder/body"
require "httpx/transcoder/form"
require "httpx/transcoder/json"
require "httpx/transcoder/xml"
require "httpx/transcoder/chunker"
+require "httpx/transcoder/deflate"
+require "httpx/transcoder/gzip"