Method: VCR::Configuration#uri_parser

Defined in:
lib/vcr/configuration.rb

#uri_parser#parse #uri_parser=Object

Sets a parser for VCR to use when parsing URIs. The new parser must implement a method ‘parse` that returns an instance of the URI object. This URI object must implement the following interface:

  • ‘scheme # => String`

  • ‘host # => String`

  • ‘port # => Fixnum`

  • ‘path # => String`

  • ‘query # => String`

  • ‘#port=`

  • ‘#query=`

  • ‘#to_s # => String`

  • ‘#== # => Boolean`

The ‘#==` method must return true if both URI objects represent the same URI.

This defaults to ‘URI` from the ruby standard library.

Overloads:

  • #uri_parser#parse

    Returns the current URI parser object.

    Returns:

    • (#parse)

      the current URI parser object

  • #uri_parser=Object

    Parameters:

    • value (#parse)

      sets the uri_parser



176
177
178
# File 'lib/vcr/configuration.rb', line 176

def uri_parser
  @uri_parser
end