lib/httpx/transcoder/json.rb in httpx-0.24.7 vs lib/httpx/transcoder/json.rb in httpx-1.0.0
- old
+ new
@@ -2,14 +2,12 @@
require "forwardable"
module HTTPX::Transcoder
module JSON
- JSON_REGEX = %r{\bapplication/(?:vnd\.api\+)?json\b}i.freeze
-
- using HTTPX::RegexpExtensions unless Regexp.method_defined?(:match?)
-
module_function
+
+ JSON_REGEX = %r{\bapplication/(?:vnd\.api\+)?json\b}i.freeze
class Encoder
extend Forwardable
def_delegator :@raw, :to_s