actix-web icon indicating copy to clipboard operation
actix-web copied to clipboard

actix-files: Publicly re-export new_chunked_read

Open gshep opened this issue 10 months ago • 0 comments

Hi!

I searched through the task list and didn't seem to find one.

The library re-exports the ChunkedReadFile structure, but it is impossible to create it from the outside, since the function scope is declared only for the library. This struct can be useful when implementing custom logic for streaming files, so I suggest re-exporting it as well.

Expected Behavior

new_chunked_read should be marked as pub and re-exported by the crate.

Current Behavior

new_chunked_read is marked as pub(crate) - https://github.com/actix/actix-web/blob/web-v4.9.0/actix-files/src/chunked.rs#L56

  • Actix Files 0.6.6

gshep avatar Dec 06 '24 07:12 gshep