App-Pod
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/cpan/Mojo2/UserAgent.pm view on Meta::CPAN
delete $self->{pid};
$self->_finish( $_, 1 ) for keys %{ $self->{connections} // {} };
return $self;
}
sub _connect {
my ( $self, $loop, $tx, $handle ) = @_;
my $t = $self->transactor;
my ( $proto, $host, $port ) =
$handle ? $t->endpoint( $tx ) : $t->peer( $tx );
my %options = ( timeout => $self->connect_timeout );
if ( $proto eq 'http+unix' ) { $options{path} = $host }
else { @options{qw(address port)} = ( $host, $port ) }
$options{socket_options} = $self->socket_options;
$options{handle} = $handle if $handle;
# SOCKS
if ( $proto eq 'socks' ) {
@options{qw(socks_address socks_port)} = @options{qw(address port)};
( $proto, @options{qw(address port)} ) = $t->endpoint( $tx );
my $userinfo = $tx->req->via_proxy( 0 )->proxy->userinfo;
@options{qw(socks_user socks_pass)} = split /:/, $userinfo if $userinfo;
}
# TLS
if ( $options{tls} = $proto eq 'https' ) {
map { $options{"tls_$_"} = $self->$_ } qw(ca cert key);
$options{tls_options}{SSL_verify_mode} = 0x00 if $self->insecure;
}
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.362 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )