I use tapir + akka http for the service. One of the endpoints downloads files.
val load
: Endpoint[Source[ByteString, Any], Any, Any, AkkaStreams] =
endpoint
.post
.in("load")
.in(streamBody(AkkaStreams)(
Schema(Schema.schemaForByteArray.schemaType),
CodecFormat.OctetStream()
))
.out(???)
Gettin warn
Sending an 2xx 'early' response before end of request was received
How do I handle this using tapir?