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#check_opaque

(::String? v) -> true?
check_opaque(v)

Checks the opaque v component for RFC2396 compliance and against the parser Regexp for :OPAQUE.

Can not have a host, port, user, or path component defined, with an opaque component defined.