api

http4k / org.http4k.lens / Cookies

Cookies

object Cookies : BiDiLensSpec<Request, Cookie> (source)

Inherited Properties

Name Summary
multi open val multi: BiDiMultiLensSpec<IN, OUT>

Inherited Functions

Name Summary
defaulted open fun defaulted(name: String, default: OUT, description: String?): BiDiLens<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?): BiDiLens<IN, OUT>
Make a concrete Lens for this spec that falls back to another lens if no value is found in the target.
map fun <NEXT> map(nextIn: (OUT) -> NEXT, nextOut: (NEXT) -> OUT): BiDiLensSpec<IN, NEXT>
Create another BiDiLensSpec which applies the bi-directional transformations to the result. Any resultant Lens can be used to extract or insert the final type from/into a target.
optional open fun optional(name: String, description: String?): BiDiLens<IN, OUT?>
Make a concrete Lens for this spec that looks for an optional value in the target.
required open fun required(name: String, description: String?): BiDiLens<IN, OUT>
Make a concrete Lens for this spec that looks for a required value in the target.

Extension Functions

Name Summary
map fun <NEXT, IN : Any, OUT> BiDiLensSpec<IN, OUT>.map(mapping: BiDiMapping<OUT, NEXT>): BiDiLensSpec<IN, NEXT>
with fun <T> T.with(vararg modifiers: (T) -> T): T