The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Protocol::SPDY::Frame::HeaderSupport - helper methods for frames which contain header data

VERSION

version 1.000

SYNOPSIS

DESCRIPTION

The SYN_STREAM, SYN_REPLY and HEADERS frame types all use the same method for specifying HTTP-style headers. This class provides common methods for interacting with that header data.

Mainly for internal use - see Protocol::SPDY and Protocol::SPDY::Base instead.

Returns undef if the given header is not found, otherwise returns a scalar holding the \0-separated values found for this header.

headers

Returns the arrayref structure of headers.

 [ [ header1 => value1, value2 ], [ header2 => value... ] ]

header_list

Returns the list of header names (in the order in which we received them).

header_line

Returns a string describing the current header values, for debugging.

headers_as_hashref

Returns a hashref representation of the headers. Values are all arrayrefs.

headers_as_simple_hashref

Returns a hashref representation of the headers where values are comma-separated strings.

header_hashref_to_arrayref

Converts a hashref of key=>value information into an arrayref structure.

AUTHOR

Tom Molesworth <cpan@entitymodel.com>

LICENSE

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