An URL path carrying an A
information
Convenient methods for Paths.
A query string carrying an A
information
A query string carrying an A
information
QueryString values can be created with the qs operation,
and can be combined with the &
operation:
val queryPageAndLang: QueryString[(Int, Option[String])] = qs[Int]("page") & qs[Option[String]]("lang")
Provides convenient methods on QueryString.
A single query string parameter carrying an A
information.
An URL path segment carrying an A
information.
An URL carrying an A
information
Chains the two paths
Concatenates two QueryString
s
Ability to define Int
path segments
Segment containing a Long
value
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. Server interpreters must report a failure for incoming requests whose optional query string parameters are present, but malformed.
Builds a QueryString
with one parameter.
Builds a QueryString
with one parameter.
Examples:
qs[Int]("page") // mandatory `page` parameter qs[Option[String]]("lang") // optional `lang` parameter qs[List[Long]]("id") // repeated `id` parameter
Type of the value carried by the parameter
Parameter’s name
Ability to refine a query string parameter for a type A
into a query string parameter for a type B
given a pair
of decoding/encoding functions between A
and B
.
Ability to refine a query string parameter for a type A
into a query string parameter for a type B
given a pair
of decoding/encoding functions between A
and B
.
The type of the available query string parameter.
The type of the desired query string parameter.
A query string parameter for a type A
Decoding function from A
to Option[B]
Encoding function from B
to A
A query string parameter for a type B
built by refinement from pa
.
Ability to refine a path segment for a type A
into a path segment for a type B
given a pair
of decoding/encoding functions between A
and B
.
Ability to refine a path segment for a type A
into a path segment for a type B
given a pair
of decoding/encoding functions between A
and B
.
The type of the available path segment.
The type of the desired path segment.
A path segment for a type A
Decoding function from A
to Option[B]
Encoding function from B
to A
A path segment for a type B
built by refinement from sa
.
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.
Builds a path segment carrying an A
information
Builds a static path segment
Ability to define String
query string parameters
Ability to define String
path segments
Builds an URL from the given path and query string
Query string parameter containing a Boolean
value
Implicit conversion to get rid of intellij errors when defining paths.
Implicit conversion to get rid of intellij errors when defining paths. Effectively should not be called.
Ability to define Int
query string parameters
Query string parameter containing a Long
value
An empty path.
An empty path.
Useful to begin a path definition:
path / "foo" / segment[Int] /? qs[String]("bar")
Ability to define UUID
query string parameters
Ability to define UUID
path segments
Algebra interface for describing URLs made of a path and a query string.
A path is itself made of segments chained together.
A query string is made of named parameters.