Amazon-S3-Thin
view release on metacpan or search on metacpan
lib/Amazon/S3/Thin/Resource.pm view on Meta::CPAN
package Amazon::S3::Thin::Resource;
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
sub new {
my $class = shift;
my $bucket = shift;
my $key = shift;
my $query_string = shift;
my $self = {
bucket => $bucket,
key => $key,
lib/Amazon/S3/Thin/Resource.pm view on Meta::CPAN
sub key_and_query {
my $self = shift;
return $self->key . $self->add_query;
}
sub urlencode {
my ($self, $unencoded, $allow_slash) = @_;
my $allowed = 'A-Za-z0-9_\-\.';
$allowed = "$allowed/" if $allow_slash;
return uri_escape_utf8($unencoded, "^$allowed");
}
1;
( run in 0.404 second using v1.01-cache-2.11-cpan-c21f80fb71c )