Sounds good. I'll submit a patch (or you can, if you prefer).
From: mathew [mailto:email@example.com]
Sent: Friday, August 19, 2005 10:06 AM
To: ruby-talk ML
Subject: Re: Geturl with net/http package
Daniel Berger wrote:
>Mohit Muthanna wrote:
>>Remove the 'http://' from the 'server' variable.
> It would take a minimal amount of code to make it work with
> the "http://" prefix. Any chance this could be patched?
> I also recommend accessors for @address and @port.
You should be using the URI class to parse and assemble URLs;
need to duplicate that functionality in net/http. URI
and port accessors. Also, if you want an easy wrapper around net/http
and uri, there's already open-uri.
(Also, I've contributed some improved documentation for
will hopefully make it to ruby-doc.org soon.)