Skip to content

Commit

Permalink
link to new RFCs
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 7, 2014
1 parent 2b6775d commit b258fc1
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.05 2014-06-06
5.05 2014-06-07

5.04 2014-06-03
- Added expect_close attribute to Mojo::Content.
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Content.pm
Expand Up @@ -324,7 +324,8 @@ Mojo::Content - HTTP content base class
=head1 DESCRIPTION
L<Mojo::Content> is an abstract base class for HTTP content based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616>.
L<RFC 7230|http://tools.ietf.org/html/rfc7230> and
L<RFC 7231|http://tools.ietf.org/html/rfc7231>.
=head1 EVENTS
Expand Down
4 changes: 3 additions & 1 deletion lib/Mojo/Content/MultiPart.pm
Expand Up @@ -216,7 +216,9 @@ Mojo::Content::MultiPart - HTTP multipart content
=head1 DESCRIPTION
L<Mojo::Content::MultiPart> is a container for HTTP multipart content based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616>.
L<RFC 7230|http://tools.ietf.org/html/rfc7230>,
L<RFC 7231|http://tools.ietf.org/html/rfc7231> and
L<RFC 2388|http://tools.ietf.org/html/rfc2388>.
=head1 EVENTS
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Content/Single.pm
Expand Up @@ -70,7 +70,8 @@ Mojo::Content::Single - HTTP content
=head1 DESCRIPTION
L<Mojo::Content::Single> is a container for HTTP content based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616>.
L<RFC 7230|http://tools.ietf.org/html/rfc7230> and
L<RFC 7231|http://tools.ietf.org/html/rfc7231>.
=head1 EVENTS
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojo/Date.pm
Expand Up @@ -46,7 +46,7 @@ sub parse {
sub to_string {
my $self = shift;

# RFC 2616 (Sun, 06 Nov 1994 08:49:37 GMT)
# RFC 7231 (Sun, 06 Nov 1994 08:49:37 GMT)
my ($s, $m, $h, $mday, $month, $year, $wday) = gmtime($self->epoch // time);
return sprintf '%s, %02d %s %04d %02d:%02d:%02d GMT', $DAYS[$wday], $mday,
$MONTHS[$month], $year + 1900, $h, $m, $s;
Expand Down Expand Up @@ -75,7 +75,8 @@ Mojo::Date - HTTP date
=head1 DESCRIPTION
L<Mojo::Date> implements HTTP date and time functions based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616>.
L<RFC 7230|http://tools.ietf.org/html/rfc7230> and
L<RFC 7231|http://tools.ietf.org/html/rfc7231>.
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Headers.pm
Expand Up @@ -169,7 +169,8 @@ Mojo::Headers - Headers
=head1 DESCRIPTION
L<Mojo::Headers> is a container for HTTP headers based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616>.
L<RFC 7230|http://tools.ietf.org/html/rfc7230> and
L<RFC 7231|http://tools.ietf.org/html/rfc7231>.
=head1 ATTRIBUTES
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Message.pm
Expand Up @@ -313,7 +313,8 @@ Mojo::Message - HTTP message base class
=head1 DESCRIPTION
L<Mojo::Message> is an abstract base class for HTTP messages based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616> as well as
L<RFC 7230|http://tools.ietf.org/html/rfc7230>,
L<RFC 7231|http://tools.ietf.org/html/rfc7231> and
L<RFC 2388|http://tools.ietf.org/html/rfc2388>.
=head1 EVENTS
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Message/Request.pm
Expand Up @@ -286,7 +286,8 @@ Mojo::Message::Request - HTTP request
=head1 DESCRIPTION
L<Mojo::Message::Request> is a container for HTTP requests based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616> and
L<RFC 7230|http://tools.ietf.org/html/rfc7230>,
L<RFC 7231|http://tools.ietf.org/html/rfc7231> and
L<RFC 2817|http://tools.ietf.org/html/rfc2817>.
=head1 EVENTS
Expand Down
7 changes: 4 additions & 3 deletions lib/Mojo/Message/Response.pm
Expand Up @@ -6,7 +6,7 @@ use Mojo::Date;

has [qw(code message)];

# Umarked codes are from RFC 2616
# Umarked codes are from RFC 7231
my %MESSAGES = (
100 => 'Continue',
101 => 'Switching Protocols',
Expand All @@ -28,7 +28,7 @@ my %MESSAGES = (
304 => 'Not Modified',
305 => 'Use Proxy',
307 => 'Temporary Redirect',
308 => 'Permanent Redirect', # Draft
308 => 'Permanent Redirect', # RFC 7238
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
Expand Down Expand Up @@ -173,7 +173,8 @@ Mojo::Message::Response - HTTP response
=head1 DESCRIPTION
L<Mojo::Message::Response> is a container for HTTP responses based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616>.
L<RFC 7230|http://tools.ietf.org/html/rfc7230> and
L<RFC 7231|http://tools.ietf.org/html/rfc7231>.
=head1 EVENTS
Expand Down
3 changes: 2 additions & 1 deletion lib/Mojo/Transaction/HTTP.pm
Expand Up @@ -200,7 +200,8 @@ Mojo::Transaction::HTTP - HTTP transaction
=head1 DESCRIPTION
L<Mojo::Transaction::HTTP> is a container for HTTP transactions based on
L<RFC 2616|http://tools.ietf.org/html/rfc2616>.
L<RFC 7230|http://tools.ietf.org/html/rfc7230> and
L<RFC 7231|http://tools.ietf.org/html/rfc7231>.
=head1 EVENTS
Expand Down

0 comments on commit b258fc1

Please sign in to comment.