Metadata

case
class Metadata(path: Map[String, String], query: Map[String, Seq[String]], headers: Map[CaseInsensitive, Seq[String]])

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.

Value Params
headers

the header parameters of the http message

path

the path parameters of the http message

query

the query parameters of the http message

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def ++(other: Metadata): Metadata
def addHeader(ciKey: CaseInsensitive, value: String): Metadata
def addHeader(str: String, value: String): Metadata
def addMultipleHeaders(ciKey: CaseInsensitive, value: List[String]): Metadata
def addMultipleHeaders(key: String, 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 find(location: HttpBinding): Option[(String, List[String])]
def headersFlattened: Vector[(CaseInsensitive, String)]
def queryFlattened: Vector[(String, String)]

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product