Zaqar/Middleware/DateHeader.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 92.8% 13 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
call
1.0
CRAP 1.0
« Zaqar/Middleware/JustCallIt.pm ↑ Summary
1 package WebService::Zaqar::Middleware::DateHeader;
2  
3 # ABSTRACT: middleware for adding a Date header to all requests
4  
5 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 extends 'Net::HTTP::Spore::Middleware';
7  
8 3 ▶use HTTP::Date;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 5 ▶sub call {
Subroutine call: called CC=1 SCAR=0.0
Pod undocumented
11 5 my ($self, $req) = @_;
12 5 $req->header('Date' => HTTP::Date::time2str);
13 }
14  
15 3 1;
« Zaqar/Middleware/JustCallIt.pm ↑ Summary