Metadata

smithy4s.http.Metadata
See theMetadata companion object
case class Metadata(path: Map[String, String], query: Map[String, Seq[String]], headers: Map[CaseInsensitive, Seq[String]], statusCode: Option[Int])

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 parameters

headers

the header parameters of the http message

path

the path parameters of the http message

query

the query parameters of the http message

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

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 addQueryParamsIfNoExist(key: String, values: 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]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product