AttributeMap

sttp.tapir.AttributeMap
See theAttributeMap companion object
case class AttributeMap

An attribute is arbitrary data that is attached to an endpoint or endpoint input/output. The data is not interpreted by tapir's core in any way, but might be used by interpreters.

Typically, you'll add attributes using Endpoint.attribute and EndpointTransput.Atom.attribute. The attribute keys should be defined by the interpreters which are using them, and made available for import.

Attributes

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

Members list

Value members

Concrete methods

def get[T](k: AttributeKey[T]): Option[T]
def isEmpty: Boolean
def nonEmpty: Boolean
def put[T](k: AttributeKey[T], v: T): AttributeMap

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product