Class: HTTP::Features::NormalizeUri

Inherits:
HTTP::Feature show all
Defined in:
lib/http/features/normalize_uri.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from HTTP::Feature

#on_error, #wrap_request, #wrap_response

Constructor Details

#initialize(normalizer: HTTP::URI::NORMALIZER) ⇒ NormalizeUri

Returns a new instance of NormalizeUri.



10
11
12
# File 'lib/http/features/normalize_uri.rb', line 10

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

Instance Attribute Details

#normalizerObject (readonly)

Returns the value of attribute normalizer.



8
9
10
# File 'lib/http/features/normalize_uri.rb', line 8

def normalizer
  @normalizer
end