The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Plack::Middleware::Proxy::Connect::IO - CONNECT method

SYNOPSIS

    # In app.psgi
    use Plack::Builder;
    use Plack::App::Proxy;

    builder {
        enable "Proxy::Connect::IO", timeout => 30;
        enable "Proxy::Requests";
        Plack::App::Proxy->new->to_app;
    };

DESCRIPTION

This middleware handles the CONNECT method. It allows to connect to https addresses.

The middleware runs on servers supporting psgix.io and provides own event loop so does not work correctly with psgi.nonblocking servers.

The middleware uses only Perl's core modules: IO::Socket::INET and IO::Select.

CONFIGURATION

timeout

Timeout for the socket. The default value is 60 seconds.

SEE ALSO

Plack, Plack::App::Proxy, Plack::Middleware::Proxy::Connect.

BUGS

If you find the bug or want to implement new features, please report it at https://github.com/dex4er/perl-Plack-Middleware-Proxy-Connect-IO/issues

The code repository is available at http://github.com/dex4er/perl-Plack-Middleware-Proxy-Connect-IO

AUTHOR

Piotr Roszatycki <dexter@cpan.org>

LICENSE

Copyright (c) 2014, 2016, 2023 Piotr Roszatycki <dexter@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as perl itself.

See http://dev.perl.org/licenses/artistic.html