Mikael Ståldal
07/07/2023, 9:05 AMs4nchez
07/07/2023, 9:12 AMs4nchez
07/07/2023, 9:13 AMMikael Ståldal
07/07/2023, 9:18 AMMikael Ståldal
07/07/2023, 12:11 PMval htmlLens =
Body.string(TEXT_HTML).map<String>({ throw UnsupportedOperationException("Cannot parse") }, { it }).toLens()
Response(OK).with(htmlLens of createHTML().div { +"some text" })
But it would be nice to utilize the streaming to Appendable
.Mikael Ståldal
07/07/2023, 12:11 PMMikael Ståldal
07/07/2023, 12:15 PMMikael Ståldal
07/09/2023, 1:46 PMcreateHTML()
part into a lens, but not sure how do to that since it returns a TagConsumer
you are supposed to fire events on.