NAME
Plack::Middleware::DoCoMoGUID::CheckParam - redirect to param append location if required param is not exist.
SYNOPSIS
use Plack::Builder;
builder {
enable_if { $_[0]->{HTTP_USER_AGENT} =~ /DoCoMo/i } 'DoCoMoGUID::CheckParam';
};
or add check param
use Plack::Builder;
builder {
enable_if { $_[0]->{HTTP_USER_AGENT} =~ /DoCoMo/i } 'DoCoMoGUID::CheckParam' params => +{ 'foo' => 'bar' };
};
this will check guid and foo parameter.
DESCRIPTION
Plack::Middleware::DoCoMoGUID::CheckParam is a Plack::Middleware that redirect to param append location if required param is not exist.
AUTHOR
Keiji Yoshimi <walf443 at gmail dot com>
SEE ALSO
+<Plack::Middleware>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.