| 1 | package LWP::Protocol::http::connect; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | our $VERSION = '6.09'; # VERSION | ||
| 7 | |||
| 8 | require LWP::Protocol::http; | ||
| 9 | our @ISA = qw(LWP::Protocol::http); | ||
| 10 | LWP::Protocol::implementor('http::connect' => 'LWP::Protocol::http::connect'); | ||
| 11 | |||
| 12 | sub new { | ||
| 13 | my $self = shift->SUPER::new(@_); | ||
| 14 | $self->{scheme} =~ s/::connect$//; | ||
| 15 | $self; | ||
| 16 | } | ||
| 17 | |||
| 18 | sub _extra_sock_opts { | ||
| 19 | my $self = shift; | ||
| 20 | my($host, $port) = @_; | ||
| 21 | my @extra_sock_opts = $self->SUPER::_extra_sock_opts(@_); | ||
| 22 | return (@extra_sock_opts, @{$self->{proxy_connect_opts}}); | ||
| 23 | } | ||
| 24 | |||
| 25 | 1; | ||
| 26 |