lib/httpx/parser/http1.rb in httpx-0.15.4 vs lib/httpx/parser/http1.rb in httpx-0.16.0
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
module HTTPX
module Parser
- Error = Class.new(Error)
+ class Error < Error; end
class HTTP1
VERSIONS = %w[1.0 1.1].freeze
attr_reader :status_code, :http_version, :headers