Kayrx

kayrx : 异步非阻塞-事件驱动, I/O-Net-HTTP-Web-Client全栈开源平台.

Info

Kayrx 诞生于 Actix-* 和 Tokio 可作为定制版(兼容Actix-web 2.0 - 查看 Examples)

特征

生态组件库

And More

Example

Dependencies:

\[dependencies] kayrx = "0.7"

Code:

#\[macro_use] extern crate kayrx; use kayrx::web::{web, App, HttpServer, Responder}; #\[get("/{id}/{name}/index.html")] async fn index(info: web::Path<(u32, String)>) -> impl Responder { format!("Hello {}! id:{}", info.1, info.0) } #\[kayrx::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| App::new().service(index)) .bind("127.0.0.1:8080")? .run() .await }

查看更多 Examples

License

MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

[set title Kayrx / doc / index] [set doc-section index] [stash doc-content][require raw ./_side.html]