trait Urls extends algebra.Urls
algebra.Urls interpreter that builds URLs (in a JavaScript runtime environment).
- Source
 - Urls.scala
 
- Grouped
 - Alphabetic
 - By Inheritance
 
- Urls
 - Urls
 - PartialInvariantFunctorSyntax
 - InvariantFunctorSyntax
 - AnyRef
 - Any
 
- by any2stringadd
 - by StringFormat
 - by Ensuring
 - by ArrowAssoc
 
- Hide All
 - Show All
 
- Public
 - Protected
 
Type Members
-   implicit  class InvariantFunctorSyntax[A, F[_]] extends AnyRef
Extension methods for values of type
F[A]for which there is an implicitInvariantFunctor[F]instance.Extension methods for values of type
F[A]for which there is an implicitInvariantFunctor[F]instance.- Definition Classes
 - InvariantFunctorSyntax
 
 -   implicit  class PartialInvariantFunctorSyntax[A, F[_]] extends AnyRef
- Definition Classes
 - PartialInvariantFunctorSyntax
 
 -   implicit  class PathOps[A] extends AnyRef
Convenient methods for Paths.
 -   implicit  class QueryStringSyntax[A] extends AnyRef
Extension methods on QueryString.
Extension methods on QueryString.
- Definition Classes
 - Urls
 
 -    trait Path[A] extends Url[A]
Builds an URL path from an
A -    trait QueryString[A] extends AnyRef
Defines how to build a query string from an
A -    trait QueryStringParam[A] extends AnyRef
Defines how to build a query string parameter value from an
A -    trait Segment[A] extends AnyRef
Defines how to build a path segment from an
A -    trait Url[A] extends AnyRef
Builds an URL from an
A -    type WithDefault[A] = Option[A]
This type is necessary to express different perspectives of servers and clients on optional query string parameters with default value:
This type is necessary to express different perspectives of servers and clients on optional query string parameters with default value:
- Client interpreters should define it as 
Option[A]and omit query string parameters with default value that are empty - Server interpreters should define it as 
Aand accept incoming requests whose query string parameters with default value are missing, while providing the defined default value - Documentation interpreters should mark the parameter as optional and document the provided default value
 
 - Client interpreters should define it as 
 
Value Members
-   final  def !=(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def ##: Int
- Definition Classes
 - AnyRef → Any
 
 -  def +(other: String): String
 -  def ->[B](y: B): (Urls, B)
 -   final  def ==(arg0: Any): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def asInstanceOf[T0]: T0
- Definition Classes
 - Any
 
 -   implicit  def booleanQueryString: QueryStringParam[Boolean]
Query string parameter containing a
BooleanvalueQuery string parameter containing a
Booleanvalue- Definition Classes
 - Urls
 
 -    def chainPaths[A, B](first: Path[A], second: Path[B])(implicit tupler: Tupler[A, B]): Path[Out]
Chains the two paths
 -    def clone(): AnyRef
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
 
 -    def combineQueryStrings[A, B](first: QueryString[A], second: QueryString[B])(implicit tupler: Tupler[A, B]): QueryString[Out]
Concatenates two
QueryStrings -   implicit  def doubleQueryString: QueryStringParam[Double]
Codec for query string parameters of type
DoubleCodec for query string parameters of type
Double- Definition Classes
 - Urls
 
 -   implicit  def doubleSegment: Segment[Double]
Path segment codec for type
DoublePath segment codec for type
Double- Definition Classes
 - Urls
 
 -  def ensuring(cond: (Urls) => Boolean, msg: => Any): Urls
 -  def ensuring(cond: (Urls) => Boolean): Urls
 -  def ensuring(cond: Boolean, msg: => Any): Urls
 -  def ensuring(cond: Boolean): Urls
 -   final  def eq(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -    def equals(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef → Any
 
 -   final  def getClass(): Class[_ <: AnyRef]
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -    def hashCode(): Int
- Definition Classes
 - AnyRef → Any
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -   implicit  def intQueryString: QueryStringParam[Int]
Ability to define
Intquery string parametersAbility to define
Intquery string parameters- Definition Classes
 - Urls
 
 -   implicit  def intSegment: Segment[Int]
Path segment codec for type
IntPath segment codec for type
Int- Definition Classes
 - Urls
 
 -   final  def isInstanceOf[T0]: Boolean
- Definition Classes
 - Any
 
 -   implicit  def longQueryString: QueryStringParam[Long]
Query string parameter containing a
LongvalueQuery string parameter containing a
Longvalue- Definition Classes
 - Urls
 
 -   implicit  def longSegment: Segment[Long]
Path segment codec for type
LongPath segment codec for type
Long- Definition Classes
 - Urls
 
 -   final  def ne(arg0: AnyRef): Boolean
- Definition Classes
 - AnyRef
 
 -   final  def notify(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -   final  def notifyAll(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @IntrinsicCandidate() @native()
 
 -    def optQsWithDefault[A](name: String, default: A, docs: Documentation = None)(implicit value: QueryStringParam[A]): QueryString[WithDefault[A]]
Builds a
QueryStringwith one optional parameter, which has a default value. -   implicit  def optionalQueryStringParam[A](implicit param: QueryStringParam[A]): QueryStringParam[Option[A]]
Make a query string parameter optional:
Make a query string parameter optional:
path / "articles" /? qs[Option[Int]]("page")
- Client interpreters must omit optional query string parameters that are empty.
 - Server interpreters must accept incoming requests whose optional query string parameters are missing, and they must report a failure for incoming requests whose optional query string parameters are present, but malformed,
 - Documentation interpreters should mark the parameter as optional.
 
 -    val path: Path[Unit]
An empty path.
An empty path.
Useful to begin a path definition:
path / "foo" / segment[Int] /? qs[String]("bar")
- Definition Classes
 - Urls
 
 -   implicit  lazy val pathPartialInvariantFunctor: PartialInvariantFunctor[Path]
Provides
xmapandxmapPartialoperations. -    def qs[A](name: String, docs: Documentation)(implicit param: QueryStringParam[A]): QueryString[A]
Builds a
QueryStringwith one parameter. -   implicit  lazy val queryStringParamPartialInvariantFunctor: PartialInvariantFunctor[QueryStringParam]
Provides
xmapandxmapPartialoperations. -   implicit  lazy val queryStringPartialInvariantFunctor: PartialInvariantFunctor[QueryString]
Provides
xmapandxmapPartialoperations. -    def remainingSegments(name: String, docs: Documentation): Path[String]
The remaining segments of the path.
 -   implicit  def repeatedQueryStringParam[A, CC[X] <: Iterable[X]](implicit param: QueryStringParam[A], factory: Factory[A, CC[A]]): QueryStringParam[CC[A]]
Support query string parameters with multiple values:
Support query string parameters with multiple values:
path / "articles" /? qs[List[Long]]("id")
- Server interpreters must accept incoming requests where such parameters are missing (in such a case, its value is an empty collection), and report a failure if at least one value is malformed.
 
 -    def segment[A](name: String, docs: Documentation)(implicit s: Segment[A]): Path[A]
A path segment carrying an
Ainformation -   implicit  lazy val segmentPartialInvariantFunctor: PartialInvariantFunctor[Segment]
Provides
xmapandxmapPartialoperations. -    def staticPathSegment(segment: String): Path[Unit]
A path segment whose value is the given
segment -   implicit  lazy val stringQueryString: QueryStringParam[String]
Ability to define
Stringquery string parameters -   implicit  lazy val stringSegment: Segment[String]
Path segment codec for type
String -   final  def synchronized[T0](arg0: => T0): T0
- Definition Classes
 - AnyRef
 
 -    def toString(): String
- Definition Classes
 - AnyRef → Any
 
 -   implicit  lazy val urlPartialInvariantFunctor: PartialInvariantFunctor[Url]
Provides
xmapandxmapPartialoperations -    def urlWithQueryString[A, B](path: Path[A], qs: QueryString[B])(implicit tupler: Tupler[A, B]): Url[Out]
Builds an URL from the given path and query string
 -   implicit  def uuidQueryString: QueryStringParam[UUID]
Ability to define
UUIDquery string parametersAbility to define
UUIDquery string parameters- Definition Classes
 - Urls
 
 -   implicit  def uuidSegment: Segment[UUID]
Path segment codec for type
UUIDPath segment codec for type
UUID- Definition Classes
 - Urls
 
 -   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])
 
 -   final  def wait(): Unit
- Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.InterruptedException])
 
 
Deprecated Value Members
-    def finalize(): Unit
- Attributes
 - protected[lang]
 - Definition Classes
 - AnyRef
 - Annotations
 - @throws(classOf[java.lang.Throwable]) @Deprecated
 - Deprecated
 (Since version 9)
 -    def formatted(fmtstr: String): String
- Implicit
 - This member is added by an implicit conversion from Urls toStringFormat[Urls] performed by method StringFormat in scala.Predef.
 - Definition Classes
 - StringFormat
 - Annotations
 - @deprecated @inline()
 - Deprecated
 (Since version 2.12.16) Use
formatString.format(value)instead ofvalue.formatted(formatString), or use thef""string interpolator. In Java 15 and later,formattedresolves to the new method in String which has reversed parameters.
 -    def →[B](y: B): (Urls, B)
- Implicit
 - This member is added by an implicit conversion from Urls toArrowAssoc[Urls] performed by method ArrowAssoc in scala.Predef.
 - Definition Classes
 - ArrowAssoc
 - Annotations
 - @deprecated
 - Deprecated
 (Since version 2.13.0) Use
->instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
 
Inherited from algebra.Urls
Inherited from endpoints4s.PartialInvariantFunctorSyntax
Inherited from endpoints4s.InvariantFunctorSyntax
Inherited from AnyRef
Inherited from Any
Types
Types introduced by the algebra
Operations
Operations creating and transforming values