Class: HTTP::Features::NormalizeUri
- Inherits:
-
HTTP::Feature
- Object
- HTTP::Feature
- HTTP::Features::NormalizeUri
- Defined in:
- lib/http/features/normalize_uri.rb
Instance Attribute Summary collapse
-
#normalizer ⇒ Object
readonly
Returns the value of attribute normalizer.
Instance Method Summary collapse
-
#initialize(normalizer: HTTP::URI::NORMALIZER) ⇒ NormalizeUri
constructor
A new instance of NormalizeUri.
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
#normalizer ⇒ Object (readonly)
Returns the value of attribute normalizer.
8 9 10 |
# File 'lib/http/features/normalize_uri.rb', line 8 def normalizer @normalizer end |