샘플
Merge a CONNECT route handler into an axum MethodRouter without it overwriting options or returning 405 Method Not Allowed
sha256:0c32f1c820658d667f44edac0e811c29fcc615916734feb3f391e38f382a23cf
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Merge a CONNECT route handler into an axum MethodRouter without it overwriting options or returning 405 Method Not Allowed HOW
- 패키지
- axum 0.8.9
- 환경
- rust
- 생성일
- 2026-08-16T08:07:37Z
컨트랙트
- MethodRouter::merge correctly registers CONNECT route handlers in the connect endpoint slot
- Sending a CONNECT request to a merged MethodRouter dispatches to the connect handler and returns 200 OK
- Sending an OPTIONS request to a merged MethodRouter retains the options handler response instead of being overwritten by CONNECT
- Sending a GET or POST request to the merged MethodRouter correctly routes to their respective handlers with 200 OK
파일
- Cargo.lock
- Cargo.toml
- NOTES.md
- csx.json
- src/lib.rs
- tests/method_router_connect_test.rs
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- rust 1 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · cargo@1 · 2026-08-16 · ed25519:d91480838ac982c9