| 1 | package HTTP::Throwable::Role::Status::PermanentRedirect 0.028; | ||
| 2 | our $AUTHORITY = 'cpan:STEVAN'; | ||
| 3 | |||
| 4 | use Moo::Role; | ||
| 5 | |||
| 6 | with( | ||
| 7 | 'HTTP::Throwable', | ||
| 8 | 'HTTP::Throwable::Role::BoringText', | ||
| 9 | 'HTTP::Throwable::Role::Redirect', | ||
| 10 | ); | ||
| 11 | |||
| 12 | sub default_status_code { 308 } | ||
| 13 | sub default_reason { 'Permanent Redirect' } | ||
| 14 | |||
| 15 | no Moo::Role; 1; | ||
| 16 | |||
| 17 | =pod | ||
| 18 | |||
| 19 | =encoding UTF-8 | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | HTTP::Throwable::Role::Status::PermanentRedirect - 308 Permanent Redirect | ||
| 24 | |||
| 25 | =head1 VERSION | ||
| 26 | |||
| 27 | version 0.028 | ||
| 28 | |||
| 29 | =head1 DESCRIPTION | ||
| 30 | |||
| 31 | This status code is defined in L<RFC 7238|http://tools.ietf.org/html/rfc7238>. | ||
| 32 | |||
| 33 | The 308 (Permanent Redirect) status code indicates that the target resource has | ||
| 34 | been assigned a new permanent URI and any future references to this resource | ||
| 35 | ought to use one of the enclosed URIs. | ||
| 36 | |||
| 37 | The server SHOULD generate a Location header field ([RFC7231], Section 7.1.2) | ||
| 38 | in the response containing a preferred URI reference for the new permanent URI. | ||
| 39 | The user agent MAY use the Location field value for automatic redirection. The | ||
| 40 | server's response payload usually contains a short hypertext note with a | ||
| 41 | hyperlink to the new URI(s). | ||
| 42 | |||
| 43 | =head1 PERL VERSION | ||
| 44 | |||
| 45 | This library should run on perls released even a long time ago. It should work | ||
| 46 | on any version of perl released in the last five years. | ||
| 47 | |||
| 48 | Although it may work on older versions of perl, no guarantee is made that the | ||
| 49 | minimum required version will not be increased. The version may be increased | ||
| 50 | for any reason, and there is no promise that patches will be accepted to lower | ||
| 51 | the minimum required perl. | ||
| 52 | |||
| 53 | =head1 AUTHORS | ||
| 54 | |||
| 55 | =over 4 | ||
| 56 | |||
| 57 | =item * | ||
| 58 | |||
| 59 | Stevan Little <stevan.little@iinteractive.com> | ||
| 60 | |||
| 61 | =item * | ||
| 62 | |||
| 63 | Ricardo Signes <cpan@semiotic.systems> | ||
| 64 | |||
| 65 | =back | ||
| 66 | |||
| 67 | =head1 COPYRIGHT AND LICENSE | ||
| 68 | |||
| 69 | This software is copyright (c) 2011 by Infinity Interactive, Inc. | ||
| 70 | |||
| 71 | This is free software; you can redistribute it and/or modify it under | ||
| 72 | the same terms as the Perl 5 programming language system itself. | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | __END__ |