Gossamer Forum
Home : Gossamer Threads Inc. : Discussion :

suggestion for GT::URI

Quote Reply
suggestion for GT::URI
Hi,

In GT::URI::get, could something like the following be added, or am I oversimplifying thing?
Code:
if( $url =~ /^https/ ) {
use GT::URI::HTTPS;
my $r->{$url}{buffer} = GT::URI::HTTPS->get($url);
return $r;
} else {
return GT::URI->get( $url );
}

To summarize: it would be nice if I don't have to decide whether to call GT::URI::get() or GT::URI::HTTPS::get() myself. And it would be nice if both functions return their result in the same structure (or if at least it would be documented what is returned).

Thanks, Jasper

http://www.bookings.org
Subject Author Views Date
Thread suggestion for GT::URI jaspercram 3628 Dec 11, 2002, 1:02 AM
Thread Re: [jaspercram] suggestion for GT::URI
Jagerman 3499 Dec 11, 2002, 7:46 PM
Post Re: [Jagerman] suggestion for GT::URI
jaspercram 3455 Dec 12, 2002, 11:53 PM