http4k
Toggle table of contents
6.51.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-core
/
org.http4k.lens
/
LensSpec
/
optional
optional
open
override
fun
optional
(
name
:
String
,
description
:
String
?
=
null
,
metadata
:
Map
<
String
,
Any
>
=
emptyMap()
)
:
Lens
<
IN
,
OUT
?
>
(
source
)
Make a concrete Lens for this spec that looks for an optional value in the target.