import core::http; fn start_main() -> i64 { let outbound = http::client_request("GET", "http://127.0.0.1:9/")::value; let reply = http::request(outbound, http::client_options()); if reply::ok { return 1; } print(reply::error::code); if reply::error::code not matches "http.connect_failed" { return 2; } return 0; }