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
- Alphabetic
- By Inheritance
Inherited
- Metadata
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def ++(other: Metadata): Metadata
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addHeader(str: String, value: String): Metadata
- def addHeader(ciKey: CaseInsensitive, value: String): Metadata
- def addMultipleHeaders(key: String, value: List[String]): Metadata
- def addMultipleHeaders(ciKey: CaseInsensitive, value: List[String]): Metadata
- def addMultipleQueryParams(key: String, value: List[String]): Metadata
- def addPathParam(key: String, value: String): Metadata
- def addQueryParam(key: String, value: String): Metadata
- def addQueryParamsIfNoExist(key: String, values: String*): Metadata
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def find(location: HttpBinding): Option[(String, List[String])]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val headers: Map[CaseInsensitive, Seq[String]]
- def headersFlattened: Vector[(CaseInsensitive, String)]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val path: Map[String, String]
- val query: Map[String, Seq[String]]
- def queryFlattened: Vector[(String, String)]
- val statusCode: Option[Int]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()