1HTTP::Exception::3XX(3)User Contributed Perl DocumentatioHnTTP::Exception::3XX(3)
2
3
4

NAME

6       HTTP::Exception::3XX - Base Class for 3XX (redirect) Exceptions
7

VERSION

9       version 0.04007
10

SYNOPSIS

12           use HTTP::Exception;
13
14           # all are exactly the same
15           HTTP::Exception->throw(301, location => 'google.com');
16           HTTP::Exception::301->throw(location => 'google.com');
17           HTTP::Exception::MOVED_PERMANENTLY->throw(location => 'google.com');
18
19           # and in your favourite Webframework
20           eval { ... }
21           if (my $e = HTTP::Exception::301->caught) {
22               my $self->req->redirect($e->location);
23           }
24

DESCRIPTION

26       This package is the base class for all 3XX (redirect) Exceptions.  This
27       makes adding features for a range of exceptions easier.
28
29       DON'T USE THIS PACKAGE DIRECTLY. 'use HTTP::Exception' does this for
30       you.
31

ADDITIONAL FIELDS

33       Fields, that 3XX-Exceptions provide over HTTP::Exceptions.
34
35   location
36       Indicates, where the browser is being redirected to.
37

AUTHOR

39       Thomas Mueller, "<tmueller at cpan.org>"
40

BUGS

42       Please report any bugs or feature requests to "bug-http-exception at
43       rt.cpan.org", or through the web interface at
44       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTTP-Exception>.  I
45       will be notified, and then you'll automatically be notified of progress
46       on your bug as I make changes.
47

SUPPORT

49       You can find documentation for this module with the perldoc command.
50
51           perldoc HTTP::Exception::Base
52
53       You can also look for information at:
54
55       •   RT: CPAN's request tracker
56
57           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTTP-Exception>
58
59       •   AnnoCPAN: Annotated CPAN documentation
60
61           <http://annocpan.org/dist/HTTP-Exception>
62
63       •   CPAN Ratings
64
65           <http://cpanratings.perl.org/d/HTTP-Exception>
66
67       •   Search CPAN
68
69           <https://metacpan.org/release/HTTP-Exception>
70
72       Copyright 2010 Thomas Mueller.
73
74       This program is free software; you can redistribute it and/or modify it
75       under the terms of either: the GNU General Public License as published
76       by the Free Software Foundation; or the Artistic License.
77
78       See http://dev.perl.org/licenses/ for more information.
79
80
81
82perl v5.38.0                      2023-07-20           HTTP::Exception::3XX(3)
Impressum