There's no documentation for this item.
Source Code
# File uri/generic.rb, line 376 def check_host(v) return v unless v if @registry || @opaque raise InvalidURIError, "can not set host with registry or opaque" elsif HOST !~ v raise InvalidComponentError, "bad component(expected host component): #{v}" end return true end
<code/>and<pre/>for code samples.