Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

URI::Generic#set_authority

set_authority(user, password, host, port = nil)

Protected setter for the authority info (user, password, host and port). If port is nil, default_port will be set.