NAME

Protocol::SPDY::Frame - support for SPDY frames

VERSION

version 0.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.

new

Instantiate a new frame. Typically called as a super method from the Protocol::SPDY::Frame::Control or Protocol::SPDY::Frame::Data subclass implementation.

update_length

Updates the length field in the packet.

packet

Returns the current packet as a byte string.

length

Returns the length of the current packet in bytes.

type

Returns the type of this frame, such as SYN_STREAM, RST_STREAM etc.

COMPONENTS

Further documentation can be found in the following modules:

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

Copyright Tom Molesworth 2011-2012. Licensed under the same terms as Perl itself.