Linux SoftwareProgrammingLibrariesPOE::Filter::HTTPD 0.3601

POE::Filter::HTTPD 0.3601


POE::Filter::HTTPD is a Perl module to convert stream to HTTP::Request; HTTP::Response to stream. SYNOPSIS $httpd = POE::Filt
Developer:   Artur Bergman
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   0K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


POE::Filter::HTTPD is a Perl module to convert stream to HTTP::Request; HTTP::Response to stream.

SYNOPSIS

$httpd = POE::Filter::HTTPD->new();
$arrayref_with_http_response_as_string =
$httpd->put($full_http_response_object);
$arrayref_with_http_request_object =
$line->get($arrayref_of_raw_data_chunks_from_driver);

The HTTPD filter parses the first HTTP 1.0 request from an incoming stream into an HTTP::Request object (if the request is good) or an HTTP::Response object (if the request was malformed). To send a response, give its put() method a HTTP::Response object.

Here is a sample input handler:

sub got_request {
my ($heap, $request) = @_[HEAP, ARG0];

# The Filter::HTTPD generated a response instead of a request.
# There must have been some kind of error. You could also check
# (ref($request) eq 'HTTP::Response').
if ($request->isa('HTTP::Response')) {
$heap->{wheel}->put($request);
return;
}

# Process the request here.
my $response = HTTP::Response->new(200);
$response->push_header( 'Content-Type', 'text/html' );
$response->content( $request->as_string() );

$heap->{wheel}->put($response);
}
Please see the documentation for HTTP::Request and HTTP::Response.POE::Filter::HTTPD is a Perl module to convert stream to HTTP::Request; HTTP::Response to stream.

Requirements:
  • Perl
    tags http response  http request  filter httpd  poe filter  the request  response object  request object  heap {wheel}  {wheel} put  arrayref with  perl module  convert stream  request http  

    Download POE::Filter::HTTPD 0.3601


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/R/RC/RCAPUTO/POE-0.3601.tar.gz


    Authors software

    POE::Filter::HTTPD 0.3601 (by Artur Bergman)
    POE::Filter::HTTPD is a Perl module to convert stream to HTTP::Request; HTTP::Response to stream.

    SYNOPSIS

    $httpd = POE::Filt


    Similar software

    POE::Filter::HTTPD 0.3601 (by Artur Bergman)
    POE::Filter::HTTPD is a Perl module to convert stream to HTTP::Request; HTTP::Response to stream.

    SYNOPSIS

    $httpd = POE::Filt

    ScraperPOD 3.05 (by Glenn Wood)
    ScraperPOD is a framework for scraping results from search engines.

    SYNOPSIS

    use WWW::Scraper;

    # Name your Scraper module /

    Net::Gopher::Response::XML 0.90 (by William G. Davis)
    Net::Gopher::Response::XML is a Perl module Convert a Gopher/Gopher+ response to XML.

    SYNOPSIS

    use Net::Gopher;
    use Net::Gop

    Pluto Request Action Library 2.0.0.36 (by Pluto Inc.)
    Pluto Request Action Library allows you to create a client/server application, where client sends requests, server replies with respo

    DBIx::XMLServer 0.02 (by Martin Bright)
    DBIx::XMLServer is a Perl module to serve data as XML in response to HTTP requests.

    SYNOPSIS

    use XML::LibXML;
    use DBIx::XM

    Apache::ImageMagick 2.0b7 (by G.Richter)
    Apache::ImageMagick is a Perl module that can convert and manipulate images on the fly.

    SYNOPSIS

    In httpd.conf or .htaccess

    Solex 0.5.3 RC1 (by Solex Team)
    Solex is a free open source Web application testing tool built as a plug-in for the Eclipse IDE

    HTTPManifold 0.9b (by Adam M. Lane)
    HTTPManifold is an application for tunnelling Web/HTTP traffic for multiple servers through a single IP address (a reverse proxy)

    mod_athena 1.1.2 (by Mark Wolgemuth)
    mod_athena is an Apache-based application load balancer for large systems.

    This module is designed to allow httpd to act as a load

    Modify Headers 0.5.2 for Firefox (by Gareth Hunt)
    Modify Headers is a Firefox extension which allowes you to add, modify and filter http request headers.

    You can modify the user ag


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags