This moves the code for sending static files from the file module to Response. It's now more accessible, allows custom MIME types and the error type comes with a method for sending a 404 response if the file wasn't found.
This will break anything that uses rustful::file::Loader or rustful::file::Error.
This moves the code for sending static files from the
file
module toResponse
. It's now more accessible, allows custom MIME types and the error type comes with a method for sending a 404 response if the file wasn't found.This will break anything that uses
rustful::file::Loader
orrustful::file::Error
.