Hi,
In GT::URI::get, could something like the following be added, or am I oversimplifying thing?
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
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