With

    let port = match self.url.port {
        Some(port) => uint::from_str(port).get(),
        _ => 80
    };

I was getting

    http_client.rc:141:49: 141:53 error: mismatched types: expected `&str` but found `&~str` (expected &str but found &-ptr)
    http_client.rc:141                 Some(ref port) => uint::from_str(port).get(),
                                                                        ^~~~

How do I do that? Thanks for your help.