codesamplex

示例

Test axum handlers and routing without binding a port by driving the whole Router through tower's ServiceExt::oneshot, and get the exact status for each way a request can be wrong

sha256:ad2f9d5347cb52c3acc083de3c1608225248a42c41031bf843e1163d738b6e70

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Test axum handlers and routing without binding a port by driving the whole Router through tower's ServiceExt::oneshot, and get the exact status for each way a request can be wrong HOW
axum 0.8.9 tower 0.5.3 http-body-util 0.1.5 serde 1.0.229 serde_json 1.0.151 tokio 1.53.1
环境
rust 1
创建时间
2026-08-14T13:27:02Z

契约

文件

原始种子者

anonymous

验证回执