POE::Filter::SSL::PreFilter(3pm)

POE::Filter::SSL::PreFilter3pm

Allow one to add a prefilter on components using wheels

Usage

By default filters like POE::Filter::SSL can only be used if you specify the filters by manualy creating the POE::Wheel by our own. This allows this to be done if a component is doing this.

HTTPS-Server
  use POE::Filter::SSL;
  use POE::Component::Server::HTTP;
  use HTTP::Status;
  my $aliases = POE::Component::Server::HTTP->new(
    Port => 443,
    ContentHandler => {
      '/' => \&handler,
      '/dir/' => sub { return; },
      '/file' => sub { return; }
    },
    Headers => { Server => 'My Server' },
    PreFilter => POE::Filter::SSL->new(
      crt    => 'server.crt',
      key    => 'server.key',
      cacrt  => 'ca.crt'
    )
  );
  sub handler {
    my ($request, $response) = @_;
    $response->code(RC_OK);
    $response->content("Hi, you fetched ". $request->uri);
    return RC_OK;
  }
  POE::Kernel->run();
  POE::Kernel->call($aliases->{httpd}, "shutdown");
  # next line isn't really needed
  POE::Kernel->call($aliases->{tcp}, "shutdown");

Version

Version 0.39

Overview

This is an extension for some POE::Component::Server modules to use POE::Filters in front of their own used Filters

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

From libpoe-filter-ssl-perl 0.41-3+b4 in Debian 13 (Trixie). Parsed by carta from the page's man source.