CirceBodyHandler

org.mbari.vars.migration.etc.circe.CirceBodyHandler
See theCirceBodyHandler companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def of[T : Decoder]: CirceBodyHandler[T]

Create a CirceBodyHandler for the desired type T. This follows the other BodyHandler conventions in the JDK. Usage is:

Create a CirceBodyHandler for the desired type T. This follows the other BodyHandler conventions in the JDK. Usage is:

given Decoder[MyType] = ...
val bodyHandler = CirceBodyHandler.of[MyType]

Type parameters

T

The type to decode the response body to.

Attributes

Returns

A CirceBodyHandler for the desired type T.