Markus Ineichen
Markus Ineichen
The Body struct is defined in axum-core. To add a `with_writer` method, I see four options to move forward: - Create a custom AsyncWrite implementation in axum_core, which sends Result...
`asynk_strim` seems to be a interesting library, but I can't see how this is related to this feature, as AsyncWriter, in contrast to Streams is a Push-Based abstraction and works...
> Seeing the implementation, I really do think you just want generators. Why not use `Body::from_stream(async_stream::stream! { ... })` directly instead of going through a future with a channel? You...
> I aggree, that this doesn't have to be directly related to axum, but outside axum, we need to go through a indirection (e.g. Piper), but axum has the possibility...
I just created a first draft in [https://github.com/mineichen/axum/tree/writer_body](https://github.com/mineichen/axum/tree/writer_body) What i managed to do: - Write an implementation without new dependencies except futures_io - Use no unsafe code Whats missing/unclear -...
I updated the interface to match Body::from_stream, so the FnOnce returns a `Into` instead of crate::Error and cleaned up some confusions i had with pin. Now it looks as i...