Fragment

object Fragment
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

final def empty[A](fragmentMatchingError: FragmentMatchingError[A]): Fragment[Unit, A]

Imposes that the URL does not contain a Fragment.

Imposes that the URL does not contain a Fragment.

def factory[T, E](extractor: MaybeFragment => Either[E, T], generator: T => MaybeFragment): Fragment[T, E]
def fragment[T, A](fromString: FromString[T, A], printer: Printer[T], fragmentMatchingError: FragmentMatchingError[A]): Fragment[T, A]

Creates a fragment matching any element of type T, as long as the urldsl.vocabulary.FromString can de-serialize it.

Creates a fragment matching any element of type T, as long as the urldsl.vocabulary.FromString can de-serialize it.

If the fragment is missing, returns an error.

final def maybeFragment[T, A](fromString: FromString[T, A], printer: Printer[T], fragmentMatchingError: FragmentMatchingError[A]): Fragment[Option[T], A]

Creates a fragment matching any element of type T, as long as the urldsl.vocabulary.FromString can de-serialize it.

Creates a fragment matching any element of type T, as long as the urldsl.vocabulary.FromString can de-serialize it.

If the fragment is missing, returns None.

Implicits

Implicits

implicit def asFragment[T, A](t: T)(fromString: FromString[T, A], printer: Printer[T], fragmentMatchingError: FragmentMatchingError[A], classTag: ClassTag[T]): Fragment[Unit, A]