NAME
Protocol::SPDY::Frame - support for SPDY frames
VERSION
version 1.001
DESCRIPTION
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.
METHODS
is_control
Returns true if this is a control frame. Recommended over checking ->isa(Protocol::SPDY::Frame::Control) directly.
is_data
Returns true if this is a data frame. Recommended over checking ->isa(Protocol::SPDY::Frame::Data) directly.
fin
Returns true if the FIN flag is set for this frame.
new
Instantiate a new frame. Typically called as a super method from the Protocol::SPDY::Frame::Control or Protocol::SPDY::Frame::Data subclass implementation.
length
Returns the length of the current packet in bytes.
type
Returns the numerical type of this frame, such as 1 for SYN_STREAM, 3 for RST_STREAM etc.
type_string
Returns the type of this frame as a string.
as_packet
Abstract method for returning the byte data comprising the SPDY packet that would hold this frame.
parse
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.
version
Returns the version for this frame, probably 3.
extract_frame
Extracts a frame from the given data.
extract_headers
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.
to_string
String representation of this frame, for debugging.
COMPONENTS
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
AUTHOR
Tom Molesworth <cpan@perlsite.co.uk>
LICENSE
Copyright Tom Molesworth 2011-2015. Licensed under the same terms as Perl itself.