Steffen Ullrich > Net-Inspect-0.21 > Net::Inspect::L7::HTTP::Request::Simple

Download:
Net-Inspect-0.21.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Net-Inspect-0.304

NAME ^

Net::Inspect::L7::HTTP::Request::Simple - simple HTTP request handling

SYNOPSIS ^

    ...
    my $rq = myHTTPRequest->new(...);
    my $http = Net::Inspect::L7::HTTP->new($rq);
    my $tcp = Net::Inspect::L4::TCP->new($http);

    package myHTTPRequest;
    use base 'Net::Inspect::L7::HTTP::Request::Simple';
    sub in {
        my ($self,$dir,$data,$eof,$time) = @_;
        # save data into file
        ...
    }

DESCRIPTION ^

This class implements simple HTTP Request handling. All hooks required in Net::Inspect::L7::HTTP are implemented. The hooks for chunked header and trailer just ignore the data, while all the other hooks call in with the content, which then should be redefined in subclass:

in($dir,$data,$eof,$time)

Typical use is for just saving request and response.

syntax highlighting: