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 hellocargo run --bin route路由配置cargo run --bin body解析请求体cargo run --bin header解析请求头cargo run --bin rejections错误处理cargo run --bin futures异步操作cargo run --bin todoTODO App文件服务器
cargo run --bin filecargo run --bin dircargo run --bin handlebars_templateHTML 模板Websockets
cargo run --bin wscargo run --bin ws_chartws AppSSE(server Side Events)
cargo run --bin ssecargo run --bin sse_chatsse AppTLS
cargo run --bin tls热更新
systemfd --no-pid -s http::3030 -- cargo watch -x 'run --bin autoreload'调试
cargo run --bin tracing