Plack::Middleware::Proxy::Connect::IO - CONNECT method
# 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;
};
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.
-
timeout
Timeout for the socket. The default value is
60
seconds.
Plack, Plack::App::Proxy, Plack::Middleware::Proxy::Connect.
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
Piotr Roszatycki dexter@cpan.org
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.