UrlPart

trait UrlPart[T, +E]

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 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
trait Fragment[T, E]
class PathQueryFragmentRepr[PathType, PathError, ParamsType, ParamsError, FragmentType, FragmentError]
trait PathSegment[T, A]
class PathSegmentWithQueryParams[PathType, PathError, ParamsType, ParamsError]
trait QueryParameters[Q, A]

Value members

Abstract methods

def createPart(t: T, encoder: UrlStringGenerator): String

Takes an instance of T and generate the part of the URL contained in this T

Takes an instance of T and generate the part of the URL contained in this T

def matchRawUrl(url: String, urlStringParserGenerator: UrlStringParserGenerator): Either[E, T]

Concrete methods

final def createPart(encoder: UrlStringGenerator)(ev: Unit =:= T): String

Sugar when T =:= Unit

Sugar when T =:= Unit

final def createPart(ev: Unit =:= T): String

Sugar when T =:= Unit

Sugar when T =:= Unit