The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Blosxom::Header::Fast - Modify $blosxom::header directly

SYNOPSIS

  no Blosxom::Header;

  $blosxom::header->{-status} = '304 Not Modified'; # set

  my $value   = $blosxom::header->{-status};                # get
  my $bool    = exists $blosxom::header->{-etag};           # exists
  my $deleted = delete $blosxom::header->{-content_length}; # delete

  %{ $blosxom::header } = (); # clear

DESCRIPTION

No need to load Blosxom::Header. Normalized keys are:

  'Foo'  # not normalized
  '-foo' # normalized

  'Foo-Bar'  # not normalized
  '-foo_bar' # normalized

  '-content_type' # not normalized
  '-type'         # normalized

  '-set_cookie' # not normalized
  '-cookie'     # normalized

  '-cookies' # not normalized
  '-cookie'  # normalized

The above way is compatible with Blosxom::Header.

SEE ALSO

Blosxom::Header

AUTHOR

Ryo Anazawa (anazawa@cpan.org)

LICENSE AND COPYRIGHT

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.