object Uri extends UriInterpolator with Serializable
For a general description of the behavior of apply
, parse
, safeApply
and unsafeApply
methods, see sttp.model.
The safeApply
methods return a validation error if the scheme contains illegal characters or if the host is empty.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Uri
- Serializable
- Serializable
- UriInterpolator
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class AbsolutePath(segments: Seq[Segment]) extends PathSegments with Product with Serializable
- case class Authority(userInfo: Option[UserInfo], hostSegment: Segment, port: Option[Int]) extends Product with Serializable
- type Encoding = (String) ⇒ String
- sealed trait PathSegments extends AnyRef
- sealed trait QuerySegment extends AnyRef
- case class RelativePath(segments: Seq[Segment]) extends PathSegments with Product with Serializable
- case class Segment(v: String, encoding: Encoding) extends Product with Serializable
- case class UserInfo(username: String, password: Option[String]) extends Product with Serializable
-
implicit
class
UriContext extends AnyRef
- Definition Classes
- UriInterpolator
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(javaUri: URI): Uri
- def apply(scheme: String, authority: Option[Authority], path: Seq[Segment], querySegments: Seq[QuerySegment], fragment: Option[Segment]): Uri
- def apply(scheme: String, userInfo: Option[UserInfo], host: String, port: Option[Int], path: Seq[String], querySegments: Seq[QuerySegment], fragment: Option[String]): Uri
- def apply(scheme: String, host: String, path: Seq[String], fragment: Option[String]): Uri
- def apply(scheme: String, host: String, path: Seq[String]): Uri
- def apply(scheme: String, host: String, port: Int, path: Seq[String]): Uri
- def apply(scheme: String, host: String, port: Int): Uri
- def apply(scheme: String, host: String): Uri
- def apply(scheme: String, path: Seq[String]): Uri
- def apply(host: String, port: Int, path: Seq[String]): Uri
- def apply(host: String, port: Int): Uri
- def apply(host: String): Uri
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def parse(uri: String): Either[String, Uri]
-
def
pathRelative(path: Seq[String], querySegments: Seq[QuerySegment], fragment: Option[String]): Uri
Create a relative URI with a relative path.
-
def
pathRelative(path: Seq[String], fragment: Option[String]): Uri
Create a relative URI with a relative path.
-
def
pathRelative(path: Seq[String]): Uri
Create a relative URI with a relative path.
-
def
relative(path: Seq[String], querySegments: Seq[QuerySegment], fragment: Option[String]): Uri
Create a relative URI with an absolute path.
-
def
relative(path: Seq[String], fragment: Option[String]): Uri
Create a relative URI with an absolute path.
-
def
relative(path: Seq[String]): Uri
Create a relative URI with an absolute path.
- def safeApply(scheme: String, authority: Option[Authority], pathSegments: Seq[Segment], querySegments: Seq[QuerySegment], fragmentSegment: Option[Segment]): Either[String, Uri]
- def safeApply(scheme: String, userInfo: Option[UserInfo], host: String, port: Option[Int], path: Seq[String], querySegments: Seq[QuerySegment], fragment: Option[String]): Either[String, Uri]
- def safeApply(scheme: String, host: String, path: Seq[String], fragment: Option[String]): Either[String, Uri]
- def safeApply(scheme: String, host: String, path: Seq[String]): Either[String, Uri]
- def safeApply(scheme: String, host: String, port: Int, path: Seq[String]): Either[String, Uri]
- def safeApply(scheme: String, host: String, port: Int): Either[String, Uri]
- def safeApply(scheme: String, host: String): Either[String, Uri]
- def safeApply(scheme: String, path: Seq[String]): Either[String, Uri]
- def safeApply(host: String, port: Int, path: Seq[String]): Either[String, Uri]
- def safeApply(host: String, port: Int): Either[String, Uri]
- def safeApply(host: String): Either[String, Uri]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeApply(scheme: String, authority: Option[Authority], pathSegments: Seq[Segment], querySegments: Seq[QuerySegment], fragmentSegment: Option[Segment]): Uri
- def unsafeApply(scheme: String, userInfo: Option[UserInfo], host: String, port: Option[Int], path: Seq[String], querySegments: Seq[QuerySegment], fragment: Option[String]): Uri
- def unsafeApply(scheme: String, host: String, path: Seq[String], fragment: Option[String]): Uri
- def unsafeApply(scheme: String, host: String, path: Seq[String]): Uri
- def unsafeApply(scheme: String, host: String, port: Int, path: Seq[String]): Uri
- def unsafeApply(scheme: String, host: String, port: Int): Uri
- def unsafeApply(scheme: String, host: String): Uri
- def unsafeApply(scheme: String, path: Seq[String]): Uri
- def unsafeApply(host: String, port: Int, path: Seq[String]): Uri
- def unsafeApply(host: String, port: Int): Uri
- def unsafeApply(host: String): Uri
- def unsafeParse(uri: String): Uri
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object Authority extends Serializable
- object EmptyPath extends PathSegments with Product with Serializable
- object FragmentEncoding
- object FragmentSegment
- object HostEncoding
- object HostSegment
- object PathSegment
- object PathSegmentEncoding
- object PathSegments
- object QuerySegment
- object QuerySegmentEncoding
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated