Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
POE::Filter::SSL::PreFUserrContributed Perl DocuPOE::Filter::SSL::PreFilter(3)

NAME
       POE::Filter::SSL::Prefilter - Allow to add a PreFilter on Compontents
       using Wheels

VERSION
       Version 0.39

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

SYNOPSIS
       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 compontent 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");

COPYRIGHT & LICENSE
       Copyright 2010-2017 Markus Schraeder, CryptoMagic GmbH, all rights
       reserved.

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

POD ERRORS
       Hey! The	above document had some	coding errors, which are explained
       below:

       Around line 105:
	   =back without =over

perl v5.32.0			  2018-02-09	POE::Filter::SSL::PreFilter(3)

NAME | VERSION | DESCRIPTION | SYNOPSIS | COPYRIGHT & LICENSE | POD ERRORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=POE::Filter::SSL::PreFilter&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help