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.