Hi, I’m trying to contribute to http4k and think I...
# http4k
a
Hi, I’m trying to contribute to http4k and think I may work on https://github.com/http4k/http4k/issues/327 To add the multipart response support, should I create a set of classes and lenses similar to
MultipartFormBody
,
MultipartEntity
,
MultipartFormParser
,
Part
etc.? If so, is it possible to reuse some of the existing logic? Because the current
http4k-multipart
module seems very specific to
multipart/form-data
requests, it feels not very straight-forward to reuse.
🔥 1
Or should I “fix” the hacky example instead? (I think the workaround is hacky is because it added the http status to each of the parts so that we can reuse
Response.Companion::parse
’s parsing logic. Is it correct?)