host=(v)
Instance Public methods
Args
- v
-
String
Description
public setter for the host component v. (with validation)
see also URI::Generic.check_host
Usage
require 'uri'
uri = URI.parse("http://my.example.com")
uri.host = "foo.com"
# => "foo.com"
uri
#=> #<URI::HTTP:0x000000008e89e8 URL:http://foo.com>
Please login to continue.