-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
As mentioned on reddit: I noticed you have "static file serving" described as a required feature for a 1.0 release.
A plug: https://github.com/scottlamb/http-entity is intended to be useful for this: it handles the conditional GET, byte range serving, and such. The hyper-0.11.x branch is async. You're most welcome to use them if you find them helpful; and if you don't find them helpful, I'd like to fix that.
My crate's young. There's no continuous build yet; the docs haven't gotten much attention; the APIs aren't stable yet; and I'm not in love with the current names http-entity and http-file. On the bright side, that means it's a good time if you have strong opinions on these things. Some possible upcoming API changes:
- the type of a given Entity's body stream and chunk type could become associate types rather than the current generics.
http_entity::servecould become a trait method rather than its current free function. My habit is pure interfaces from languages such as Go, but it seems a lot of Rust stuff such as futures puts a lot of functionality in trait methods that the implementer doesn't need to override.http_file::ChunkedReadFile::newcould move into a builder.
Metadata
Metadata
Assignees
Labels
No labels