HTTP-Headers-Fancy

 view release on metacpan or  search on metacpan

lib/HTTP/Headers/Fancy.pm  view on Meta::CPAN

=head1 NAME

HTTP::Headers::Fancy - Fancy naming schema of HTTP headers

=head1 VERSION

version 1.001

=head1 SYNOPSIS

    my %fancy = decode_hash('content-type' => ..., 'x-foo-bar-baf-baz' => ...);
    my $content_type = $fancy{ContentType};
    my $x_foo_bar_baf_baz = $fancy{-FooBarBafBaz};

    my %headers = encode_hash(ContentType => ..., -foo_bar => ...);
    # %headers = ('content-type' => ..., 'x-foo-bar' => ...);

=head1 DESCRIPTION

This module provides method for renaming HTTP header keys to a lightier, easier-to-use format.

=head1 METHODS

=head2 new

Creates a new instance of ourself. No options are supported.



( run in 2.626 seconds using v1.01-cache-2.11-cpan-524268b4103 )