Url

endpoints4s.http4s.client.Urls.Url
trait Url[A]

An URL carrying an A information

Values of type URL[A] are typically constructed by first using the path constructor and then chaining it with segments and query parameters.

 path / "users" / segment[UUID]("id") /? qs[String]("apiKey")
  • Server interpreters raise an error if they can’t parse the incoming request URL 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 PartialInvariantFunctorSyntax and InvariantFunctorSyntax classes.

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Path[A]

Members list

Value members

Abstract methods

def encodeUrl(value: A): (Path, Query)