Skip to main content

transport_clauses

Function transport_clauses 

Source
pub fn transport_clauses(
    reachable: bool,
    status: u16,
    content_type: &str,
    cors: &str,
) -> Vec<Clause>
Expand description

The transport contract a live host must satisfy so any browser — including a cross-origin web one — can walk it. Pure over the response facts, so it’s testable without a network. reachable is whether the GET completed with a 2xx.