p

uritemplate4s

package uritemplate4s

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. uritemplate4s
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class AssociativeArray(value: Seq[(String, String)]) extends Value with Product with Serializable

    Name value pairs for template substitution.

  2. sealed trait ExpandError extends AnyRef

    Error when a UriTemplate is expanded.

  3. sealed trait ExpandResult extends AnyRef

    A successfully parsed uri template can always be expanded, but there might be some warnings associated.

  4. final case class InvalidCombinationError(message: String) extends ExpandError with Product with Serializable

    Error when the value supplied for substitution is not supported.

  5. final case class ListValue(value: Seq[String]) extends Value with Product with Serializable

    A list of values for template substitution.

  6. final case class MalformedUriTemplateError(index: Int, message: String) extends ParseError with Product with Serializable

    Unable to parse the supplied malformed URI Template.

    Unable to parse the supplied malformed URI Template.

    index

    the index where parsing failed.

    message

    error message.

  7. final case class MissingValueError(varname: String) extends ExpandError with Product with Serializable

    Error when a value has not been supplied for the template variable.

    Error when a value has not been supplied for the template variable.

    >>> uritemplate"http://{missingval}.com{/present}".expand("present" -> "foo").toEither
    Left(List(MissingValueError(missingval)))
  8. sealed trait ParseError extends AnyRef

    Error when parsing a UriTemplate.

  9. final case class StringValue(value: String) extends Value with Product with Serializable

    A single string value for template substitution.

  10. trait ToStringValue[A] extends ToValue[A]

    Type class that provides a conversion from A to String.

    Type class that provides a conversion from A to String. This is used to define a specific type class for strings, to be used for the elements of ListValue and the values of AssociativeArray.

  11. trait ToValue[A] extends AnyRef

    Type class that provides a conversion from A to Value.

  12. trait UriTemplate extends UriTemplateBase with UriTemplateArities
  13. implicit final class UriTemplateStringContext extends AnyVal

    Parse and validate a Uri Template at compile time.

    Parse and validate a Uri Template at compile time.

    >>> Right(uritemplate"http://{name}.com") == UriTemplate.parse("http://{name}.com")
    true
    
    >>> compileError("""uritemplate"http://{invalid" """).msg
    not a valid URI Template, Position 1:16, found ""
  14. sealed trait Value extends AnyRef

    A value can be substituted in a template.

Value Members

  1. object ExpandResult
  2. object ToStringValue
  3. object ToValue
  4. object UriTemplate
  5. object UriTemplateVerifier extends Verifier[UriTemplate]

Inherited from AnyRef

Inherited from Any

Ungrouped