Sha256: 46d7317e15a597bc77c07e4547a616aa661f0f1ab6cfcd30f7897893833d871d

Contents?: true

Size: 322 Bytes

Versions: 23

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

require "http/uri"

module HTTP
  module Features
    class NormalizeUri < Feature
      attr_reader :normalizer

      def initialize(normalizer: HTTP::URI::NORMALIZER)
        @normalizer = normalizer
      end

      HTTP::Options.register_feature(:normalize_uri, self)
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

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