NAME

HTTP::Status::Const - interpolable HTTP status constants

VERSION

v0.2.1

SYNOPSIS

use HTTP::Status::Const;

...

$response->status( $HTTP_NOT_FOUND );

...

my %handlers => (
  $HTTP_OK      => sub { ... },
  $HTTP_CREATED => sub { ... },
  ...
);

DESCRIPTION

This module is basically a wrapper around HTTP::Status that allows you to use the constants as read-only scalar variables instead of function names.

This means the constants can be used in contexts where you need interpolated variables, such as hash keys or in strings.

See the Pod::Readme documentation for more details on the POD syntax that this module recognizes.

See pod2readme for command-line usage.

INSTALLATION

See How to install CPAN modules.

Required Modules

This distribution requires Perl v5.10.0.

This distribution requires the following modules:

RECENT CHANGES

  • Removed HTTP::Status::Constants from distribution. (This version just exports everything that HTTP::Status::Const does, so it should have no effect on existing users.)

See the Changes file for a longer revision history.

SEE ALSO

HTTP::Status

AUTHOR

Robert Rothenberg, <rrwo at cpan.org>

LICENSE AND COPYRIGHT

Copyright 2014 Robert Rothenberg.

This program is free software; you can redistribute it and/or modify it under the terms of the the Artistic License (2.0). You may obtain a copy of the full license at:

http://www.perlfoundation.org/artistic_license_2_0