Net::IMP::HTTP - interface for HTTP specific Net::IMP plugins
The Net::IMP::HTTP modules make it easier to write HTTP specific IMP plugins. We distinguish between HTTP connection specific plugins and HTTP request specific plugins. The differences are:
Similar IMP_MAXOFFSET means the end of connection for connection specific plugins, while end of request for request specific plugins.
Similar it is expected, that connection specific plugins fix framing or content-length headers themself, when changing data. For request specific plugins the caller of the plugin is expected to adjust these.
The following modules are currently implemented or planned:
This module provides the data type definitions for HTTP connection and request types.
This module is a base class for IMP plugins working with HTTP connection types.
This module is a base class for IMP plugins working with HTTP request types.
Using this module can adapt HTTP connection specific plugins into a simple stream interface (IMP_DATA_STREAM)
Using this module can adapt HTTP request specific plugins into a simple stream interface (IMP_DATA_STREAM).
Net::IMP::HTTP defines the following constants for HTTP specific data types
IMP_DATA_HTTP_HEADER - request and response header IMP_DATA_HTTP_BODY - request and response body chunks (stream) IMP_DATA_HTTP_CHKHDR - chunk header in chunked transfer encoding IMP_DATA_HTTP_CHKTRAILER - chunk trailer in chunked transfer encoding IMP_DATA_HTTP_DATA - arbitrary data after connection upgrades (stream) IMP_DATA_HTTP_JUNK - junk data (leading new lines before header..)
IMP_DATA_HTTPRQ_HEADER - request and response header IMP_DATA_HTTPRQ_CONTENT - request and response body chunks (stream) IMP_DATA_HTTPRQ_DATA - arbitrary data after connection upgrades (stream)
Steffen Ullrich, <firstname.lastname@example.org>
Copyright 2013 Steffen Ullrich
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.