A UrlPart represents a part of (or the entire) URL and is able to extract some information out of it. When it succeeds to extract information, it returns an element of type T (wrapped in a Right). When it fails to extract such information, it returns an error type E (wrapped in a Left.
A UrlPart is also able to generate its corresponding part of the URL by ingesting an element of type T. When doing that, it outputs a String (whose semantic may vary depending on the type of UrlPart you are dealing with).
- Companion:
- object
class Object
trait Matchable
class Any
class PathQueryFragmentRepr[PathType, PathError, ParamsType, ParamsError, FragmentType, FragmentError]