Created
October 7, 2022 12:56
-
-
Save s1monw1/867c0628f05a16b4ce52664e27ea8f68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val req = Request(GET, "/greet/{name}") | |
val reqWithName = nameLens.inject("kotlin", req) | |
// alternatively, http4k offers a with function that can apply multiple lenses at once | |
val reqWithName = Request(GET, "/greet/{name}").with( | |
nameLens of "simon" //, more lenses | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment