class Protocol::HTTP::Reference

def with(path: nil, parameters: nil, fragment: @fragment)

Options Hash: (**fragment)
  • Set (String) -- the fragment to this value.
  • Append (Hash) -- the parameters to this reference.
  • Append (String) -- the string to this reference similar to `File.join`.
def with(path: nil, parameters: nil, fragment: @fragment)
	if @parameters
		if parameters
			parameters = @parameters.merge(parameters)
		else
			parameters = @parameters
		end
	end
	
	if path
		path = expand_path(@path, path, false)
	else
		path = @path
	end
	
	self.class.new(path, @query_string, fragment, parameters)
end