use net::http; use net::ip; use net::uri; use os; export fn main() void = { const client = http::newclient("Hare test client"); defer http::client_finish(&client); const req = http::get(&client, &uri::uri { scheme = "http", host = ip::LOCAL_V6, path = "/", port = 8080, ... }); http::write_header(os::stdout, &req.header)!; };