Eve/Event/PsgiRequestReceived.pm

filter: Statementstmt 62.5% 10 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 66.6% 14 / 21 CC 1 SCAR 2.2
CC
1
Cov
62%
init
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Eve/Event/ExternalSignup.pm ↑ Summary Eve/Event/ExternalProfileAdd.pm »
1 package Eve::Event::PsgiRequestReceived;
2  
3 1 ▶use parent qw(Eve::Event::HttpRequestReceived);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 B<Eve::Event::PsgiRequestReceived> - HTTP request received through PSGI.
11  
12 =head1 SYNOPSIS
13  
14 use Eve::Event::PsgiRequestReceived;
15  
16 Eve::Event::PsgiRequestReceived->new(
17 event_map => $event_map,
18 env_hash => $env);
19  
20 =head1 DESCRIPTION
21  
22 B<Eve::Event::PsgiRequestReceived> is an event assumed to signal
23 about a new HTTP request that was dispatched by a PSGI handler. It
24 differs from a plain HTTP request event in a way that it must contain
25 the environment hash that was passed by the handler.
26  
27 =head3 Properties
28  
29 =over 4
30  
31 =item C<env_hash>
32  
33 =back
34  
35 =head3 Constructor arguments
36  
37 =over 4
38  
39 =item C<event_map>
40  
41 an event map object
42  
43 =item C<env_hash>
44  
45 an environment hash passed by the PSGI handler.
46  
47 =back
48  
49 =head1 METHODS
50  
51 =head2 B<init()>
52  
53 =cut
54  
55 0 ▶sub init {
Subroutine init: not called CC=1 SCAR=6.9
Pod documented
56 0 my ($self, %arg_hash) = @_;
57 0 my $arguments = Eve::Support::arguments(\%arg_hash, my $env_hash);
58  
59 0 $self->SUPER::init(%{$arguments});
60  
61 0 $self->{'env_hash'} = $env_hash;
62 0 $self->{'response'} = undef;
63 }
64  
65 =head1 SEE ALSO
66  
67 =over 4
68  
69 =item L<Eve::Event::HttpRequestReceived>
70  
71 =item L<Eve::EventMap>
72  
73 =back
74  
75 =head1 LICENSE AND COPYRIGHT
76  
77 Copyright 2012 Igor Zinovyev.
78  
79 This program is free software; you can redistribute it and/or modify it
80 under the terms of either: the GNU General Public License as published
81 by the Free Software Foundation; or the Artistic License.
82  
83 See http://dev.perl.org/licenses/ for more information.
84  
85  
86 =head1 AUTHOR
87  
88 =over 4
89  
90 =item L<Igor Zinovyev|mailto:zinigor@gmail.com>
91  
92 =back
93  
94 =cut
95  
96 1 1;
« Eve/Event/ExternalSignup.pm ↑ Summary Eve/Event/ExternalProfileAdd.pm »