expression
HTTP/3: bounded transport fallback
A client may try a TCP-based HTTP version when QUIC connectivity fails. This model permits one fallback only for a pre-request connectivity failure, not certificate failures or ambiguous application outcomes. Fallback must preserve server identity checks and security policy. Expected stdout (not executed): use negotiated HTTP/3 try approved TCP transport once stop: identity failure reconcile request outcome Common mistake: Disabling certificate verification to make fallback work, or replaying a request with an unknown outcome.
Formal Syntax & Structure
rust syntaxrust
match connection_result { ... }Working Example
Example Snippetrust
fn main() { enum Outcome { Connected, UnreachableBeforeRequest, IdentityFailure, OutcomeUnknown } for result in [Outcome::Connected, Outcome::UnreachableBeforeRequest, Outcome::IdentityFailure, Outcome::OutcomeUnknown] { let action = match result { Outcome::Connected => "use negotiated HTTP/3", Outcome::UnreachableBeforeRequest => "try approved TCP transport once", Outcome::IdentityFailure => "stop: identity failure", Outcome::OutcomeUnknown => "reconcile request outcome", }; println!("{action}"); }}