X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FWeb%2FSimple.pm;h=c899c3a1e8989ca236264e64520064520a9d5826;hb=24175cb5e9ca7488610ff95014989e20bee55334;hp=2cc4ae2993e5199a900bd097dad619a0a4ccb316;hpb=bb436cfb058ce28eadd89b4a4f6d405a3520ffeb;p=catagits%2FWeb-Simple.git diff --git a/lib/Web/Simple.pm b/lib/Web/Simple.pm index 2cc4ae2..c899c3a 100644 --- a/lib/Web/Simple.pm +++ b/lib/Web/Simple.pm @@ -490,6 +490,16 @@ from subroutine prototypes, so this is equivalent to sub (GET+/user/*) { +=head3 Accessing the PSGI env hash + +To gain the benefit of using some middleware, specifically +Plack::Middleware::Session access to the ENV hash is needed. This is provided +in arguments to the dispatched handler. You can access this hash with the +exported +ENV constant. + + sub (GET + /foo + ?some_param=) { + my($self, $some_param, $env) = @_[0, 1, +ENV]; + =head1 EXPORTED SUBROUTINES =head2 default_config