Uri

scamper.http.Uri
See theUri companion object
sealed trait Uri

Defines URI.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def authority: String

Gets authority.

Gets authority.

Attributes

Throws
NoSuchElementException

if authority not specified (i.e., URI is not absolute)

def authorityOption: Option[String]

Gets optional authority.

Gets optional authority.

Attributes

def fragment: String

Gets fragment.

Gets fragment.

Attributes

def fragmentOption: Option[String]

Gets fragment.

Gets fragment.

Attributes

def host: String

Gets host.

Gets host.

Attributes

Throws
NoSuchElementException

if host not specified (i.e., URI is not absolute)

def hostOption: Option[String]

Gets optional host.

Gets optional host.

Attributes

def isAbsolute: Boolean

Tests whether URI is absolute.

Tests whether URI is absolute.

Attributes

def path: String

Gets path.

Gets path.

Attributes

def port: Int

Gets port.

Gets port.

Attributes

Throws
NoSuchElementException

if port not specified

def portOption: Option[Int]

Gets optional port.

Gets optional port.

Attributes

Gets query.

Gets query.

Attributes

def scheme: String

Gets scheme.

Gets scheme.

Attributes

Throws
NoSuchElementException

if scheme not specified (i.e., URI is not absolute)

def schemeOption: Option[String]

Gets optional scheme.

Gets optional scheme.

Attributes

def setFragment(fragment: Option[String]): Uri

Recreates URI with new fragment.

Recreates URI with new fragment.

Attributes

def setFragment(fragment: String): Uri

Recreates URI with new fragment.

Recreates URI with new fragment.

Attributes

def setPath(path: String): Uri

Recreates URI with new path.

Recreates URI with new path.

Attributes

def setQuery(query: QueryString): Uri

Recreates URI with new query.

Recreates URI with new query.

Attributes

def toAbsoluteUri(scheme: String, authority: String): Uri

Recreates URI with supplied scheme and authority.

Recreates URI with supplied scheme and authority.

Attributes

def toAbsoluteUri(scheme: String, host: String, port: Int): Uri

Recreates URI with supplied scheme, host, and port.

Recreates URI with supplied scheme, host, and port.

Attributes

def toAbsoluteUri(scheme: String, host: String, port: Option[Int]): Uri

Recreates URI with supplied scheme, host, and port.

Recreates URI with supplied scheme, host, and port.

Attributes

Recreates URI without scheme and authority.

Recreates URI without scheme and authority.

Attributes

Recreates URI without scheme, authority, and fragment.

Recreates URI without scheme, authority, and fragment.

Attributes

def toURI: URI

Converts URI to java.net.URI.

Converts URI to java.net.URI.

Attributes