api

http4k / org.http4k.lens / LensSpec / optional

optional

open fun optional(name: String, description: String? = null): Lens<IN, OUT?>

Make a concrete Lens for this spec that looks for an optional value in the target.