update port
cargo run --bin hello
cargo run --bin route
cargo run --bin body
cargo run --bin header
cargo run --bin rejections
cargo run --bin futures
cargo run --bin todo
cargo run --bin file
cargo run --bin dir
cargo run --bin handlebars_template
cargo run --bin ws
cargo run --bin ws_chart
cargo run --bin sse
cargo run --bin sse_chat
cargo run --bin tls
systemfd --no-pid -s http::3030 -- cargo watch -x 'run --bin autoreload'
cargo run --bin tracing
warp 示例
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
示例
基础示例
cargo run --bin hello
cargo run --bin route
路由配置cargo run --bin body
解析请求体cargo run --bin header
解析请求头cargo run --bin rejections
错误处理cargo run --bin futures
异步操作cargo run --bin todo
TODO App文件服务器
cargo run --bin file
cargo run --bin dir
cargo run --bin handlebars_template
HTML 模板Websockets
cargo run --bin ws
cargo run --bin ws_chart
ws AppSSE(server Side Events)
cargo run --bin sse
cargo run --bin sse_chat
sse AppTLS
cargo run --bin tls
热更新
systemfd --no-pid -s http::3030 -- cargo watch -x 'run --bin autoreload'
调试
cargo run --bin tracing