blib/lib/HTTP/Tiny/NoProxy.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 100% 1 / 1 totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
new
1.0
CRAP 1.0
« blib/lib/Dancer/Session/Simple.pm ↑ Summary lib/Dancer/Continuation/Halted.pm »
1 package HTTP::Tiny::NoProxy;
2 27 our $AUTHORITY = 'cpan:SUKRIA';
3 27 $HTTP::Tiny::NoProxy::VERSION = '1.3522';
4 27 ▶use base 'HTTP::Tiny';
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # Simple subclass of HTTP::Tiny, adding the no_proxy argument, because we're
7 # talking to 127.0.0.1 and it makes no sense to use a proxy for that - and
8 # causes lots of cpantesters failures on any boxes that have proxy env vars set.
9 #
10 # See https://github.com/chansen/p5-http-tiny/pull/118 for a PR I raised for
11 # HTTP::Tiny to automatically ignore proxy settings for 127.0.0.1/localhost.
12  
13  
14 47 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
15 47 my ($self, %args) = @_;
16  
17 47 $args{no_proxy} = [127.0.0.1, 127.0.0.11];
18  
19 47 return $self->SUPER::new(%args);
20 }
21  
22  
23 27 1;
24  
25 __END__
« blib/lib/Dancer/Session/Simple.pm ↑ Summary lib/Dancer/Continuation/Halted.pm »