Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (33 sloc) 1.319 kb
NAME
Plack::Middleware::DoCoMoGUID - Combine
Plack::Middleware::DoCoMoGUID::RedirectFilter and
Plack::Middleware::DoCoMoGUID::HTMLStickyQuery.
SYNOPSIS
use Plack::Builder;
builder {
enable_if { $_[0]->{HTTP_USER_AGENT} =~ m/DoCoMo/i } "DoCoMoGUID";
};
or add check param
builder {
enable_if { $_[0]->{HTTP_USER_AGENT} =~ m/DoCoMo/i } "DoCoMoGUID", params => +{
'foo' => 'bar',
};
};
this will check for the "guid" and "foo" parameter.
DESCRIPTION
Plack::Middleware::DoCoMoGUID is a Plack::Middleware that filters HTML
content and adds "?guid=ON" to all relative links and form actions using
HTML::StickyQuery::DoCoMoGUID as well as to the Location header on
redirects.
If you only need the functionality of one module, consider using
Plack::Middleware::DoCoMoGUID::RedirectFilter or
Plack::Middleware::DoCoMoGUID::HTMLStickyQuery directly.
AUTHOR
Keiji Yoshimi <walf443 at gmail dot com>
SEE ALSO
Plack::Middleware::DoCoMoGUID::RedirectFilter,
Plack::Middleware::DoCoMoGUID::HTMLStickyQuery,
Plack::Middleware::DoCoMoGUID::CheckParam, Plack::Middleware
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Jump to Line
Something went wrong with that request. Please try again.