Net::SPDY::Compressor - SPDY header compressor
Please read carefully: This is an ALPHA stage software. In particular this means that even though it probably won't kill your cat, re-elect George W. Bush nor install Solaris 11 Express edition to your hard drive, it is in active development, functionality is missing and no APIs are stable.
See TODO file in the distribution to learn about missing and planned functionality. You are more than welcome to join the development and submit patches with fixes or enhancements. Bug reports are probably not very useful at this point.
use Net::SPDY::Compressor; my $compr = new Net::SPDY::Compressor; print $compr->uncompress($compr->compress("Hello, World!\n"));
Net::SPDY::Compressor provides a convenient way to compress data in a way used by the SPDY protocol.
This, in particular, means, that there are two separate streams (for input and output), streams are synced after each message and the stream is initialized with a dictionary of strings common to web communication.
For the actual values refer to the protocol specification.
The initial SPDY compression dictionary.
Creates a new compressor instance.
- compress STRING
Returns a compressed string.
- uncompress STRING
Returns an uncompressed string given a compressed one.
https://developers.google.com/speed/spdy/ -- SPDY project web site
http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3 -- Protocol specification
Source code for Net::SPDY is kept in a public GIT repository. Visit https://github.com/lkundrak/net-spdy.
Bugs reports and feature enhancement requests are tracked at https://rt.cpan.org/Public/Dist/Display.html?Name=Net::SPDY.
Copyright 2012, Lubomir Rintel
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.