iron:Rust的可扩展并行Web框架

时间:2021-02-15 15:56:08
【文件属性】:
文件名称:iron:Rust的可扩展并行Web框架
文件大小:66KB
文件格式:ZIP
更新时间:2021-02-15 15:56:08
Rust 铁 Rust中可扩展,并发为中心的Web开发。 响应计时器示例 注意:此示例适用于此存储库(主分支)中的当前iron代码。 如果您使用的是crates.io中的iron 0.6,请参阅分支的。 extern crate iron; extern crate time; use iron :: prelude :: * ; use iron :: {typemap, AfterMiddleware, BeforeMiddleware}; use time :: precise_time_ns; struct ResponseTime ; impl typemap :: Key for ResponseTime { type Value = u64 ; } impl BeforeMiddleware for ResponseTime { fn before ( & self , r
【文件预览】:
iron-master
----.travis.yml(675B)
----mount()
--------src()
--------Cargo.toml(400B)
--------examples()
--------README.md(2KB)
----LICENSE(1KB)
----CONTRIBUTING.md(635B)
----Cargo.toml(114B)
----examples()
--------around.rs(2KB)
--------error.rs(1KB)
--------hello_custom_config.rs(560B)
--------simple_routing.rs(1KB)
--------get_set_headers.rs(1KB)
--------redirect.rs(318B)
--------error_recovery.rs(4KB)
--------404.rs(178B)
--------helper_macros.rs(1KB)
--------echo.rs(660B)
--------time.rs(1022B)
--------Cargo.toml(901B)
--------hello.rs(198B)
--------content_type.rs(1KB)
--------echo_query.rs(567B)
----.gitignore(275B)
----persistent()
--------src()
--------Cargo.toml(452B)
--------examples()
--------README.md(1KB)
----logger()
--------LICENSE(1KB)
--------CONTRIBUTING.md(720B)
--------src()
--------Cargo.toml(506B)
--------examples()
--------README.md(3KB)
----iron()
--------src()
--------Cargo.toml(720B)
----README.md(7KB)
----router()
--------src()
--------Cargo.toml(428B)
--------examples()
--------README.md(2KB)

网友评论