staticfile-用于Iron的静态文件-Rust开发

时间:2021-05-27 19:28:00
【文件属性】:
文件名称:staticfile-用于Iron的静态文件-Rust开发
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-27 19:28:00
Rust Web Servers staticfile Iron Web框架的静态文件服务处理程序。 示例此示例使用安装处理程序来提供来自多个Director静态文件的文件。Iron Web框架的静态文件服务处理程序。 示例此示例使用安装处理程序来提供来自多个目录的文件。 让mut mount = Mount :: new(); //在/ mount.mount(“ /”,Static :: new(Path :: new(“ target / doc /”)))处提供共享的JS / CSS //在/ doc / mount.mount(“ / doc /”,Static :: new(Path :: new(“ target / doc / staticfile /”)))中提供静态文件docs; //在/ src / mount.mount(“ / src /”,static :: new(Path :: new(“ target / doc / src / staticfile / lib
【文件预览】:
staticfile-master
----.gitignore(92B)
----src()
--------static_handler.rs(8KB)
--------requested_path.rs(2KB)
--------lib.rs(365B)
----.travis.yml(126B)
----CONTRIBUTING.md(728B)
----LICENSE(1KB)
----Cargo.toml(551B)
----examples()
--------doc_server.rs(845B)
--------router.rs(1KB)
----README.md(2KB)
----tests()
--------cache.rs(5KB)
--------static.rs(5KB)

网友评论