hyper-staticfile icon indicating copy to clipboard operation
hyper-staticfile copied to clipboard

Static file-serving for Hyper 1.0

Results 5 hyper-staticfile issues
Sort by recently updated
recently updated
newest added

Previously with hyper 0.14, I was able to design a server with hyper and hyper-staticfile (0.9.x) to serve different types of requests, depending on the URI that requests plain JSON...

Code is rough, and not sure if this is a good idea. Just playing around with ideas in #24. This bypasses `tokio::fs` and directly uses `spawn_blocking` inspired by Tokio internals....

[sendfile(2)](https://manpages.debian.org/stretch/manpages-dev/sendfile.2.en.html) allows data to be transferred from a file descriptor to a TCP socket descriptor without paying the price of a copy round-trip through user space. This is a great...

In my quick tests, there is some room for improvement in the performance of this crate. We discussed some ideas in #23, mainly: - increasing the read buffer size or...