For a general description of the behavior of apply
, parse
, safeApply
and unsafeApply
methods, see sttp.model.
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.
- Companion
- class
Type members
Classlikes
Inherited classlikes
Types
Value members
Concrete methods
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, authority: Option[Authority], path: Seq[Segment], querySegments: Seq[QuerySegment], fragment: Option[Segment]): Uri
def pathRelative(path: Seq[String], querySegments: Seq[QuerySegment], fragment: Option[String]): Uri
Create a relative URI with a relative path.
Create a relative URI with a relative path.
def safeApply(scheme: String, host: String, path: Seq[String], fragment: Option[String]): 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, authority: Option[Authority], pathSegments: Seq[Segment], querySegments: Seq[QuerySegment], fragmentSegment: Option[Segment]): Either[String, 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, authority: Option[Authority], pathSegments: Seq[Segment], querySegments: Seq[QuerySegment], fragmentSegment: Option[Segment]): Uri