Sha256: 2d2587b44429ce97e1354fbdce49c77a2c39d6c6ca378e19ac41562026f3d6cd

Contents?: true

Size: 494 Bytes

Versions: 2

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

module HTTP
  class Feature
    def initialize(opts = {}) # rubocop:disable Style/OptionHash
      @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

2 entries across 2 versions & 1 rubygems

Version Path
http-5.0.0.pre3 lib/http/feature.rb
http-5.0.0.pre2 lib/http/feature.rb