final case class URL(path: Path, kind: Location = URL.Location.Relative, queryParams: QueryParams = QueryParams.empty, fragment: Option[Fragment] = None) extends URLPlatformSpecific with QueryOps[URL] with Product with Serializable
- Self Type
- URL
- Alphabetic
- By Inheritance
- URL
- Serializable
- Product
- Equals
- QueryOps
- QueryChecks
- QueryGetters
- QueryModifier
- URLPlatformSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new URL(path: Path, kind: Location = URL.Location.Relative, queryParams: QueryParams = QueryParams.empty, fragment: Option[Fragment] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(that: URL): URL
A right-biased way of combining two URLs.
A right-biased way of combining two URLs. Where it makes sense, information will be merged, but in cases where this does not make sense (e.g. two non-empty fragments), the information from the right URL will be used.
- def ++(that: QueryParams): URL
Combines two collections of query parameters together.
Combines two collections of query parameters together. If there are duplicate keys, the values from both sides are preserved, in order from left-to-right.
- Definition Classes
- QueryModifier
- def /(segment: String): URL
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def absolute(scheme: Scheme, host: String, port: Int): URL
- def absolute(host: String): URL
- def addLeadingSlash: URL
- def addPath(path: String): URL
- def addPath(path: Path): URL
- def addQueryParam(key: String, value: String): URL
Adds the specified key/value pair to the query parameters.
Adds the specified key/value pair to the query parameters.
- Definition Classes
- QueryModifier
- def addQueryParams(queryParams: QueryParams): URL
- def addQueryParams(values: String): URL
- Definition Classes
- QueryModifier
- def addQueryParams(key: String, value: Chunk[String]): URL
Adds the specified key/value pairs to the query parameters.
Adds the specified key/value pairs to the query parameters.
- Definition Classes
- QueryModifier
- def addTrailingSlash: URL
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def dropLeadingSlash: URL
- def dropTrailingSlash: URL
- def encode: String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- URL → Equals → AnyRef → Any
- val fragment: Option[Fragment]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hasQueryParam(name: CharSequence): Boolean
- Definition Classes
- QueryChecks
- def hashCode(): Int
- Definition Classes
- URL → AnyRef → Any
- def host(host: String): URL
- def host: Option[String]
- def hostPort: Option[String]
- returns
the location, the host name and the port. The port part is omitted if is the default port for the protocol.
- def isAbsolute: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isRelative: Boolean
- val kind: Location
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalize: URL
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def path(path: String): URL
- def path(path: Path): URL
- val path: Path
- def port: Option[Int]
- def port(port: Int): URL
- def portIfNotDefault: Option[Int]
- def portOrDefault: Option[Int]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def queryParam(key: String): Option[String]
Retrieves the first query parameter value having the specified name.
Retrieves the first query parameter value having the specified name.
- Definition Classes
- QueryGetters
- def queryParamOrElse(key: String, default: => String): String
Retrieves the first query parameter value having the specified name, or else uses the default value.
Retrieves the first query parameter value having the specified name, or else uses the default value.
- Definition Classes
- QueryGetters
- def queryParamTo[T](key: String)(implicit codec: TextCodec[T]): Either[QueryParamsError, T]
Retrieves the first typed query parameter value having the specified name.
Retrieves the first typed query parameter value having the specified name.
- Definition Classes
- QueryGetters
- def queryParamToOrElse[T](key: String, default: => T)(implicit codec: TextCodec[T]): T
Retrieves the first typed query parameter value having the specified name, or else uses the default value.
Retrieves the first typed query parameter value having the specified name, or else uses the default value.
- Definition Classes
- QueryGetters
- def queryParamToZIO[T](key: String)(implicit codec: TextCodec[T]): IO[QueryParamsError, T]
Retrieves the first typed query parameter value having the specified name as ZIO.
Retrieves the first typed query parameter value having the specified name as ZIO.
- Definition Classes
- QueryGetters
- def queryParameters: QueryParams
- Definition Classes
- URL → QueryGetters
- def queryParams(key: String): Chunk[String]
Retrieves all query parameter values having the specified name.
Retrieves all query parameter values having the specified name.
- Definition Classes
- QueryGetters
- val queryParams: QueryParams
- def queryParamsOrElse(key: String, default: => Iterable[String]): Chunk[String]
Retrieves all query parameter values having the specified name, or else uses the default iterable.
Retrieves all query parameter values having the specified name, or else uses the default iterable.
- Definition Classes
- QueryGetters
- def queryParamsTo[T](key: String)(implicit codec: TextCodec[T]): Either[QueryParamsError, Chunk[T]]
Retrieves all typed query parameter values having the specified name.
Retrieves all typed query parameter values having the specified name.
- Definition Classes
- QueryGetters
- def queryParamsToOrElse[T](key: String, default: => Iterable[T])(implicit codec: TextCodec[T]): Chunk[T]
Retrieves all query parameter values having the specified name, or else uses the default iterable.
Retrieves all query parameter values having the specified name, or else uses the default iterable.
- Definition Classes
- QueryGetters
- def queryParamsToZIO[T](key: String)(implicit codec: TextCodec[T]): IO[QueryParamsError, Chunk[T]]
Retrieves all typed query parameter values having the specified name as ZIO.
Retrieves all typed query parameter values having the specified name as ZIO.
- Definition Classes
- QueryGetters
- def relative: URL
- def removeQueryParam(key: String): URL
Removes the specified key from the query parameters.
Removes the specified key from the query parameters.
- Definition Classes
- QueryModifier
- def removeQueryParams(keys: Iterable[String]): URL
Removes the specified keys from the query parameters.
Removes the specified keys from the query parameters.
- Definition Classes
- QueryModifier
- def resolve(reference: URL): Either[String, URL]
RFC 3986 § 5.2 Relative Resolution
RFC 3986 § 5.2 Relative Resolution
- reference
the URL to resolve relative to
base URLthis- returns
the target URL
- def scheme(scheme: Scheme): URL
- def scheme: Option[Scheme]
- def setQueryParams(queryParams: (String, Chunk[String])*): URL
- Definition Classes
- QueryModifier
- def setQueryParams(queryParams: Map[String, Chunk[String]]): URL
- Definition Classes
- QueryModifier
- def setQueryParams(values: String): URL
- Definition Classes
- QueryModifier
- def setQueryParams(values: QueryParams): URL
- Definition Classes
- QueryModifier
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toJavaURI: URI
Returns a new java.net.URI representing this URL.
- def updateQueryParams(f: (QueryParams) => QueryParams): URL
- Definition Classes
- URL → QueryModifier
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])