QueryString
endpoints4s.play.client.Urls.QueryString
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")
- Server interpreters raise an error if they can’t parse the incoming request query string parameters as a value of type
A
. By default, they produce a Bad Request (400) response with a list of error messages in a JSON array. Refer to the documentation of your server interpreter to customize this behavior.
Attributes
- Note
-
This type has implicit methods provided by the QueryStringSyntax, InvariantFunctorSyntax, and the PartialInvariantFunctorSyntax classes.
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article