1package HTTP::Throwable::Role::Status::Found; 2our $AUTHORITY = 'cpan:STEVAN'; 3$HTTP::Throwable::Role::Status::Found::VERSION = '0.027'; 4use Moo::Role; 5 6with( 7 'HTTP::Throwable', 8 'HTTP::Throwable::Role::Redirect', 9 'HTTP::Throwable::Role::BoringText', 10); 11 12sub default_status_code { 302 } 13sub default_reason { 'Found' } 14 15no Moo::Role; 1; 16 17=pod 18 19=encoding UTF-8 20 21=head1 NAME 22 23HTTP::Throwable::Role::Status::Found - 302 Found 24 25=head1 VERSION 26 27version 0.027 28 29=head1 DESCRIPTION 30 31The requested resource resides temporarily under a different URI. 32Since the redirection might be altered on occasion, the client 33SHOULD continue to use the Request-URI for future requests. This 34response is only cacheable if indicated by a Cache-Control or 35Expires header field. 36 37The temporary URI SHOULD be given by the Location field in the 38response. Unless the request method was HEAD, the entity of the 39response SHOULD contain a short hypertext note with a hyperlink 40to the new URI(s). 41 42=head1 ATTRIBUTES 43 44=head2 location 45 46This is a required string, which will be used in the Location header 47when creating a PSGI response. 48 49=head1 AUTHORS 50 51=over 4 52 53=item * 54 55Stevan Little <stevan.little@iinteractive.com> 56 57=item * 58 59Ricardo Signes <rjbs@cpan.org> 60 61=back 62 63=head1 COPYRIGHT AND LICENSE 64 65This software is copyright (c) 2011 by Infinity Interactive, Inc. 66 67This is free software; you can redistribute it and/or modify it under 68the same terms as the Perl 5 programming language system itself. 69 70=cut 71 72__END__ 73 74# ABSTRACT: 302 Found 75 76#pod =head1 DESCRIPTION 77#pod 78#pod The requested resource resides temporarily under a different URI. 79#pod Since the redirection might be altered on occasion, the client 80#pod SHOULD continue to use the Request-URI for future requests. This 81#pod response is only cacheable if indicated by a Cache-Control or 82#pod Expires header field. 83#pod 84#pod The temporary URI SHOULD be given by the Location field in the 85#pod response. Unless the request method was HEAD, the entity of the 86#pod response SHOULD contain a short hypertext note with a hyperlink 87#pod to the new URI(s). 88#pod 89#pod =attr location 90#pod 91#pod This is a required string, which will be used in the Location header 92#pod when creating a PSGI response. 93#pod 94