the protocol, if defined
the host, if defined
the port, if defined
the path
the query string, if any
the URL's user info, if any
the fragment, if any
The coded authority for this URI.
The coded authority for this URI.
the authority, if any
Get the default port for the protocol.
Get the default port for the protocol.
the default port
the fragment, if any
the host, if defined
The underlying java.net.URL
.
Open an input stream to the URL.
Open an input stream to the URL.
Success(stream)
or Failure(Exception)
the path
the port, if defined
the protocol, if defined
the query string, if any
Get the URL string representation of this URL (i.e., the string you could paste into a browser).
Get the URL string representation of this URL (i.e., the string
you could paste into a browser). Contrast this function with
toString()
, which gets the string representation of the object
and its fields.
the string
the URL's user info, if any
Convenient Scala case-class wrapper for a
java.net.URL
. This class doesn't include all the capabilities. For example, it lacks the equivalent ofgetContent()
, as that's better handled through other means.the protocol, if defined
the host, if defined
the port, if defined
the path
the query string, if any
the URL's user info, if any
the fragment, if any