X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FWeb%2FSimple.pm;h=7adf003a00ed8606d38d41e9aa187a66e141a60d;hb=e139ce1642139a961b78ea726bc7afccc28966c8;hp=8685d3990d5710fe82ecc6c70ccdb546f4d3fb02;hpb=bb07abdcc3d1d5d78fff44c2ea7cdc1daddc2ef7;p=catagits%2FWeb-Simple.git diff --git a/lib/Web/Simple.pm b/lib/Web/Simple.pm index 8685d39..7adf003 100644 --- a/lib/Web/Simple.pm +++ b/lib/Web/Simple.pm @@ -5,7 +5,7 @@ use warnings::illegalproto (); use Moo (); use Web::Dispatch::Wrapper (); -our $VERSION = '0.030'; +our $VERSION = '0.031'; sub import { my ($class, $app_package) = @_; @@ -526,7 +526,9 @@ The param spec is elements of one of the following forms: separated by the C<&> character. The arguments added to the request are one per non-C<:>/C<*> parameter (scalar for normal, arrayref for multiple), -plus if any C<:>/C<*> specs exist a hashref containing those values. +plus if any C<:>/C<*> specs exist a hashref containing those values. If a +parameter has no value, i.e. appears as '?foo&', a value of 1 will be +captured. Please note that if you specify a multiple type parameter match, you are ensured of getting an arrayref for the value, EVEN if the current incoming @@ -569,7 +571,7 @@ the 'coffee' parameter. Note, in the case where you combine arrayref, single parameter and named hashref style, the arrayref and single parameters will appear in C<@_> in the -order you defined them in the protoype, but all hashrefs will merge into a +order you defined them in the prototype, but all hashrefs will merge into a single C<$params>, as in the example above. =head3 Upload matches @@ -604,7 +606,7 @@ Matches may be combined with the + character - e.g. 'GET + /user/*' => sub { -to create an AND match. They may also be combined withe the | character - e.g. +to create an AND match. They may also be combined with the | character - e.g. 'GET|POST' => sub {