http4k / org.http4k.lens / LensSpec / defaulted
open fun defaulted(name:
String
, default: OUT, description:
String
? = null):
Lens
<IN, OUT>
Make a concrete Lens for this spec that falls back to the default value if no value is found in the target.
open fun defaulted(name:
String
, default:
Lens
<IN, OUT>, description:
String
? = null):
Lens
<IN, OUT>
Make a concrete Lens for this spec that falls back to another lens if no value is found in the target.