Sha256: 576309efe45859561238bd61dea73e5c3ac66bced9294adb71f407d3eddc6774

Contents?: true

Size: 459 Bytes

Versions: 15

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module HTTP
  class Feature
    def initialize(opts = {})
      @opts = opts
    end

    def wrap_request(request)
      request
    end

    def wrap_response(response)
      response
    end

    def on_error(request, error); end
  end
end

require "http/features/auto_inflate"
require "http/features/auto_deflate"
require "http/features/logging"
require "http/features/instrumentation"
require "http/features/normalize_uri"

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
direct7-0.0.18 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/lib/http/feature.rb
direct7-0.0.17 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/lib/http/feature.rb
direct7-0.0.16 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/lib/http/feature.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/http-5.2.0/lib/http/feature.rb
direct7-0.0.13 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/lib/http/feature.rb
direct7-0.0.12 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/lib/http/feature.rb
http-5.2.0 lib/http/feature.rb
direct7-0.0.11 vendor/bundle/ruby/2.7.0/gems/http-5.1.1/lib/http/feature.rb
http-5.1.1 lib/http/feature.rb
http-5.1.0 lib/http/feature.rb
http-5.0.4 lib/http/feature.rb
http-5.0.3 lib/http/feature.rb
http-5.0.2 lib/http/feature.rb
http-5.0.1 lib/http/feature.rb
http-5.0.0 lib/http/feature.rb