Protocol::SPDY::Frame - support for SPDY frames
version 1.001
Support for SPDY frames. Typically you'd interact with these through the top-level Protocol::SPDY object.
See the Protocol::SPDY::Frame::Control and Protocol::SPDY::Frame::Data subclasses for the two currently-defined frame types.
Returns true if this is a control frame. Recommended over checking ->isa(Protocol::SPDY::Frame::Control) directly.
Returns true if this is a data frame. Recommended over checking ->isa(Protocol::SPDY::Frame::Data) directly.
Returns true if the FIN flag is set for this frame.
Instantiate a new frame. Typically called as a super method from the Protocol::SPDY::Frame::Control or Protocol::SPDY::Frame::Data subclass implementation.
Returns the length of the current packet in bytes.
Returns the numerical type of this frame, such as 1 for SYN_STREAM, 3 for RST_STREAM etc.
Returns the type of this frame as a string.
Abstract method for returning the byte data comprising the SPDY packet that would hold this frame.
Extract a frame from the given packet if possible. Takes a scalar reference to byte data, and returns a Protocol::SPDY::Frame subclass, or undef on failure.
Returns the version for this frame, probably 3.
Extracts a frame from the given data.
Given a scalar containing bytes, constructs an arrayref of headers and returns a 2-element list containing this arrayref and the length of processed data.
String representation of this frame, for debugging.
Further documentation can be found in the following modules:
Protocol::SPDY - top-level protocol object
Protocol::SPDY::Frame - generic frame class
Protocol::SPDY::Frame::Control - specific subclass for control frames
Protocol::SPDY::Frame::Data - specific subclass for data frames
Tom Molesworth <cpan@perlsite.co.uk>
Copyright Tom Molesworth 2011-2015. Licensed under the same terms as Perl itself.
To install Protocol::SPDY, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::SPDY
CPAN shell
perl -MCPAN -e shell install Protocol::SPDY
For more information on module installation, please visit the detailed CPAN module installation guide.