Can you define a output only body lens? Seems like...
# http4k
m
Can you define a output only body lens? Seems like if I do:
Copy code
Body.binary(ContentType.OCTET_STREAM).map { ... }.toLens()
It becomes an input only body lens? And
Copy code
Body.binary(ContentType.OCTET_STREAM).map({ ... }, { ... }).toLens()
gives a bidi body lens.
d
ah - unfortunately not. you can cheat and just make it throw in the input mapper