api

http4k / org.http4k.lens / MultiLensSpec / defaulted

defaulted

abstract fun defaulted(name: String, default: List<OUT>, description: String? = null): Lens<IN, List<OUT>>

Make a concrete Lens for this spec that fall back to the default list of values if no values are found in the target.

abstract fun defaulted(name: String, default: Lens<IN, List<OUT>>, description: String? = null): Lens<IN, List<OUT>>

Make a concrete Lens for this spec that falls back to another lens if no values are found in the target.