Commit a719b8fe authored by Xavier Guimard's avatar Xavier Guimard

New upstream version 6.16

parent 28e3f41a
Revision history for HTTP-Message
6.16 2018-03-28 14:09:17Z
- Update status codes to official IANA list (GH#100) (Theo van Hoesel)
6.15 2018-03-13 13:02:56Z
- Whenever possible, use an absolute four digit year for Time::Local (GH#97)
- Add is_cacheable_by_default() (GH#98) (Theo van Hoesel)
......
......@@ -31,13 +31,22 @@ Then install it:
% make install
On Windows platforms, you should use `dmake` or `nmake`, instead of `make`.
If your perl is system-managed, you can create a local::lib in your home
directory to install modules to. For details, see the local::lib documentation:
https://metacpan.org/pod/local::lib
The prerequisites of this distribution will also have to be installed manually. The
prerequisites are listed in one of the files: `MYMETA.yml` or `MYMETA.json` generated
by running the manual build process described above.
## Documentation
HTTP-Message documentation is available as POD.
You can run perldoc from a shell to read the documentation:
You can run `perldoc` from a shell to read the documentation:
% perldoc HTTP::Message
For more information on installing Perl modules via CPAN, please see:
https://www.cpan.org/modules/INSTALL.html
......@@ -92,7 +92,7 @@
"x_IRC" : "irc://irc.perl.org/#lwp",
"x_MailingList" : "mailto:libwww@perl.org"
},
"version" : "6.15",
"version" : "6.16",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.026001"
......@@ -219,7 +219,7 @@
{
"class" : "Dist::Zilla::Plugin::InstallGuide",
"name" : "@Author::OALDERS/InstallGuide",
"version" : "1.200007"
"version" : "1.200009"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
......@@ -556,7 +556,7 @@
"branch" : null,
"changelog" : "Changes",
"signed" : 0,
"tag" : "v6.15",
"tag" : "v6.16",
"tag_format" : "v%v",
"tag_message" : "v%v"
},
......
......@@ -55,7 +55,7 @@ resources:
bugtracker: https://github.com/libwww-perl/HTTP-Message/issues
homepage: https://github.com/libwww-perl/HTTP-Message
repository: https://github.com/libwww-perl/HTTP-Message.git
version: '6.15'
version: '6.16'
x_Dist_Zilla:
perl:
version: '5.026001'
......@@ -155,7 +155,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::InstallGuide
name: '@Author::OALDERS/InstallGuide'
version: '1.200007'
version: '1.200009'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::OALDERS/ExecDir'
......@@ -416,7 +416,7 @@ x_Dist_Zilla:
branch: ~
changelog: Changes
signed: 0
tag: v6.15
tag: v6.16
tag_format: v%v
tag_message: v%v
Dist::Zilla::Role::Git::Repo:
......
......@@ -48,7 +48,7 @@ my %WriteMakefileArgs = (
"Time::Local" => 0,
"Try::Tiny" => 0
},
"VERSION" => "6.15",
"VERSION" => "6.16",
"test" => {
"TESTS" => "t/*.t"
}
......
......@@ -4,7 +4,7 @@ HTTP::Message - HTTP style message (base class)
# VERSION
version 6.15
version 6.16
# SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Config;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
use URI;
......@@ -245,7 +245,7 @@ HTTP::Config - Configuration for request and response objects
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Headers;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
use Carp ();
......@@ -475,7 +475,7 @@ HTTP::Headers - Class encapsulating HTTP Message headers
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Headers::Auth;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
use HTTP::Headers;
......@@ -111,7 +111,7 @@ HTTP::Headers::Auth
=head1 VERSION
version 6.15
version 6.16
=head1 AUTHOR
......
......@@ -3,7 +3,7 @@ package HTTP::Headers::ETag;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
require HTTP::Date;
......@@ -107,7 +107,7 @@ HTTP::Headers::ETag
=head1 VERSION
version 6.15
version 6.16
=head1 AUTHOR
......
......@@ -3,7 +3,7 @@ package HTTP::Headers::Util;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
use base 'Exporter';
......@@ -103,7 +103,7 @@ HTTP::Headers::Util - Header value parsing utility functions
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Message;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
require HTTP::Headers;
require Carp;
......@@ -781,7 +781,7 @@ HTTP::Message - HTTP style message (base class)
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Request;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
use base 'HTTP::Message';
......@@ -145,7 +145,7 @@ HTTP::Request - HTTP style request message
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Request::Common;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
our $DYNAMIC_FILE_UPLOAD ||= 0; # make it defined (don't know why)
......@@ -312,7 +312,7 @@ HTTP::Request::Common - Construct common HTTP::Request objects
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Response;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
use base 'HTTP::Message';
......@@ -351,7 +351,7 @@ HTTP::Response - HTTP style response message
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
......@@ -3,7 +3,7 @@ package HTTP::Status;
use strict;
use warnings;
our $VERSION = '6.15';
our $VERSION = '6.16';
require 5.002; # because we use prototypes
......@@ -13,70 +13,91 @@ our @EXPORT_OK = qw(is_client_error is_server_error is_cacheable_by_default);
# Note also addition of mnemonics to @EXPORT below
# Unmarked codes are from RFC 2616
# See also: http://en.wikipedia.org/wiki/List_of_HTTP_status_codes
# Unmarked codes are from RFC 7231 (2017-12-20)
# See also:
# https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
my %StatusCode = (
100 => 'Continue',
101 => 'Switching Protocols',
102 => 'Processing', # RFC 2518 (WebDAV)
103 => 'Early Hints', # RFC 8297
102 => 'Processing', # RFC 2518: WebDAV
103 => 'Early Hints', # RFC 8297: Indicating Hints
# 104 .. 199
200 => 'OK',
201 => 'Created',
202 => 'Accepted',
203 => 'Non-Authoritative Information',
204 => 'No Content',
205 => 'Reset Content',
206 => 'Partial Content',
207 => 'Multi-Status', # RFC 2518 (WebDAV)
208 => 'Already Reported', # RFC 5842
206 => 'Partial Content', # RFC 7233: Range Requests
207 => 'Multi-Status', # RFC 4918: WebDAV
208 => 'Already Reported', # RFC 5842: WebDAV bindings
# 209 .. 225
226 => 'IM used', # RFC 3229: Delta encoding
# 227 .. 299
300 => 'Multiple Choices',
301 => 'Moved Permanently',
302 => 'Found',
303 => 'See Other',
304 => 'Not Modified',
304 => 'Not Modified', # RFC 7232: Conditional Request
305 => 'Use Proxy',
307 => 'Temporary Redirect',
308 => 'Permanent Redirect', # RFC 7238
308 => 'Permanent Redirect', # RFC 7528: Permanent Redirect
# 309 .. 399
400 => 'Bad Request',
401 => 'Unauthorized',
401 => 'Unauthorized', # RFC 7235: Authentication
402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
407 => 'Proxy Authentication Required', # RFC 7235: Authentication
408 => 'Request Timeout',
409 => 'Conflict',
410 => 'Gone',
411 => 'Length Required',
412 => 'Precondition Failed',
412 => 'Precondition Failed', # RFC 7232: Conditional Request
413 => 'Request Entity Too Large',
414 => 'Request-URI Too Large',
415 => 'Unsupported Media Type',
416 => 'Request Range Not Satisfiable',
416 => 'Request Range Not Satisfiable', # RFC 7233: Range Requests
417 => 'Expectation Failed',
418 => 'I\'m a teapot', # RFC 2324
422 => 'Unprocessable Entity', # RFC 2518 (WebDAV)
423 => 'Locked', # RFC 2518 (WebDAV)
424 => 'Failed Dependency', # RFC 2518 (WebDAV)
425 => 'No code', # WebDAV Advanced Collections
426 => 'Upgrade Required', # RFC 2817
428 => 'Precondition Required',
429 => 'Too Many Requests',
431 => 'Request Header Fields Too Large',
449 => 'Retry with', # unofficial Microsoft
# 418 .. 420
421 => 'Misdirected Request', # RFC 7540: HTTP/2
422 => 'Unprocessable Entity', # RFC 4918: WebDAV
423 => 'Locked', # RFC 4918: WebDAV
424 => 'Failed Dependency', # RFC 4918: WebDAV
# 425
426 => 'Upgrade Required',
# 427
428 => 'Precondition Required', # RFC 6585: Additional Codes
429 => 'Too Many Requests', # RFC 6585: Additional Codes
# 430
431 => 'Request Header Fields Too Large', # RFC 6585: Additional Codes
# 432 .. 450
451 => 'Unavailable For Legal Reasons', # RFC 7724: Legal Obstacels
# 452 .. 499
500 => 'Internal Server Error',
501 => 'Not Implemented',
502 => 'Bad Gateway',
503 => 'Service Unavailable',
504 => 'Gateway Timeout',
505 => 'HTTP Version Not Supported',
506 => 'Variant Also Negotiates', # RFC 2295
507 => 'Insufficient Storage', # RFC 2518 (WebDAV)
509 => 'Bandwidth Limit Exceeded', # unofficial
510 => 'Not Extended', # RFC 2774
511 => 'Network Authentication Required',
506 => 'Variant Also Negotiates', # RFC 2295: Transparant Ngttn
507 => 'Insufficient Storage', # RFC 4918: WebDAV
508 => 'Loop Detected', # RFC 5842: WebDAV bindings
# 509
510 => 'Not Extended', # RFC 2774: Extension Framework
511 => 'Network Authentication Required', # RFC 6585: Additional Codes
);
# keep some unofficial codes that used to be in this distribution
%StatusCode = (
%StatusCode,
418 => 'I\'m a teapot', # RFC 2324: HTCPC/1.0 1-april
425 => 'Unordered Collection', # WebDAV Draft
449 => 'Retry with', # microsoft
509 => 'Bandwidth Limit Exceeded', # Apache / cPanel
);
my $mnemonicCode = '';
......@@ -97,6 +118,9 @@ die if $@;
*RC_MOVED_TEMPORARILY = \&RC_FOUND; # 302 was renamed in the standard
push(@EXPORT, "RC_MOVED_TEMPORARILY");
*RC_NO_CODE = \&RC_UNORDERED_COLLECTION;
push(@EXPORT, "RC_NO_CODE");
our %EXPORT_TAGS = (
constants => [grep /^HTTP_/, @EXPORT_OK],
is => [grep /^is_/, @EXPORT, @EXPORT_OK],
......@@ -137,7 +161,7 @@ HTTP::Status - HTTP Status code processing
=head1 VERSION
version 6.15
version 6.16
=head1 SYNOPSIS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment