case class Metadata(path: Map[String, String] = Map.empty, query: Map[String, Seq[String]] = Map.empty, headers: Map[CaseInsensitive, Seq[String]] = Map.empty, statusCode: Option[Int] = None) extends Product with Serializable

Datatype containing metadata associated to a http message.

The metadata is what is found in the http headers, and can be derived from the http path, the query parameters, or the headers.

Associated to it are a pair of Encoder/Decoder typeclasses, that can be derived from a schema.

path

the path parameters of the http message

query

the query parameters of the http message

headers

the header parameters of the http message

Self Type
Metadata
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Metadata
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Metadata(path: Map[String, String] = Map.empty, query: Map[String, Seq[String]] = Map.empty, headers: Map[CaseInsensitive, Seq[String]] = Map.empty, statusCode: Option[Int] = None)

    path

    the path parameters of the http message

    query

    the query parameters of the http message

    headers

    the header parameters of the http message

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(other: Metadata): Metadata
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. def addHeader(str: String, value: String): Metadata
  6. def addHeader(ciKey: CaseInsensitive, value: String): Metadata
  7. def addMultipleHeaders(key: String, value: List[String]): Metadata
  8. def addMultipleHeaders(ciKey: CaseInsensitive, value: List[String]): Metadata
  9. def addMultipleQueryParams(key: String, value: List[String]): Metadata
  10. def addPathParam(key: String, value: String): Metadata
  11. def addQueryParam(key: String, value: String): Metadata
  12. def addQueryParamsIfNoExist(key: String, values: String*): Metadata
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def find(location: HttpBinding): Option[(String, List[String])]
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. val headers: Map[CaseInsensitive, Seq[String]]
  20. def headersFlattened: Vector[(CaseInsensitive, String)]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. val path: Map[String, String]
  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. val query: Map[String, Seq[String]]
  28. def queryFlattened: Vector[(String, String)]
  29. val statusCode: Option[Int]
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped