NAME

Spica::URIMaker

SYNOPSIS

my $builder = Spica::URIMaker->new(
    scheme => 'http',
    host   => 'example.com',
);

$builder->create(
    path_base => '/user/{user_id}',
    requires  => [qw(user_id)],
    param     => +{user_id => 1},
);

$builder->as_string; # http://example.com/user/1

DESCRIPTION

METHODS

Spica::URIMaker->new(%args)

arguments be:

scheme
host
port

$maker->create(%args)

arguments be:

path_base
requires
param

$maker->create_path($path_base, \%param)

$maker->create_query

$maker->is_invalid_param(\%param, \@requires)

$maker->new_uri

$maker->param

$maker->path

$maker->content

$maker->uri

$maker->as_string