A codec for paths, which consists of segments, where each segment may be a literal, an integer, a long, a string, a UUID, or the trailing path.
import zio.http.endpoint.PathCodec._
val pathCodec = empty / "users" / int("user-id") / "posts" / string("post-id")
Attributes
Members list
Value members
Concrete methods
Attaches documentation to the path codec, which may be used when generating developer docs for a route.
Attaches documentation to the path codec, which may be used when generating developer docs for a route.
Attributes
Decodes a method and path into a value of type A
.
Decodes a method and path into a value of type A
.
Attributes
Returns the documentation for the path codec, if any.
Returns the documentation for the path codec, if any.
Attributes
Encodes a value of type A
into the method and path that this route pattern would successfully match against.
Encodes a value of type A
into the method and path that this route pattern would successfully match against.
Attributes
Formats a value of type A
into a path. This is useful for embedding paths into HTML that is rendered by the server.
Formats a value of type A
into a path. This is useful for embedding paths into HTML that is rendered by the server.
Attributes
Determines if this pattern matches the specified method and path. Rather than use this method, you should just try to decode it directly, for higher performance, otherwise the same information will be decoded twice.
Determines if this pattern matches the specified method and path. Rather than use this method, you should just try to decode it directly, for higher performance, otherwise the same information will be decoded twice.
Attributes
Renders the path codec as a string.
Renders the path codec as a string.
Attributes
Returns the segments of the path codec.
Returns the segments of the path codec.
Attributes
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any