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
- Companion:
- object
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 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, userInfo: Option[UserInfo], host: String, port: Option[Int], path: Seq[String], querySegments: Seq[QuerySegment], fragment: Option[String]): 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