| 1 | Source: libcatalyst-plugin-smarturi-perl |
| 2 | Maintainer: Debian Perl Group <[email protected]> |
| 3 | Uploaders: Julien Vaubourg <[email protected]> |
| 4 | Section: perl |
| 5 | Testsuite: autopkgtest-pkg-perl |
| 6 | Priority: optional |
| 7 | Build-Depends: debhelper-compat (= 13) |
| 8 | Build-Depends-Indep: perl, |
| 9 | libcatalyst-perl, |
| 10 | libclass-c3-componentised-perl, |
| 11 | libclass-load-perl, |
| 12 | libmoose-perl, |
| 13 | libnamespace-clean-perl, |
| 14 | libtask-weaken-perl, |
| 15 | libtest-warnings-perl, |
| 16 | libtime-out-perl, |
| 17 | liburi-smarturi-perl |
| 18 | Standards-Version: 3.9.6 |
| 19 | Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libcatalyst-plugin-smarturi-perl |
| 20 | Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libcatalyst-plugin-smarturi-perl.git |
| 21 | Homepage: https://metacpan.org/release/Catalyst-Plugin-SmartURI |
| 22 | |
| 23 | Package: libcatalyst-plugin-smarturi-perl |
| 24 | Architecture: all |
| 25 | Depends: ${misc:Depends}, |
| 26 | ${perl:Depends}, |
| 27 | libcatalyst-perl, |
| 28 | libclass-c3-componentised-perl, |
| 29 | libclass-load-perl, |
| 30 | libmoose-perl, |
| 31 | libnamespace-clean-perl, |
| 32 | libtask-weaken-perl, |
| 33 | liburi-smarturi-perl |
| 34 | Description: module providing configurable URIs for Catalyst |
| 35 | Configure whether $c->uri_for and $c->req->uri_with return absolute, hostless |
| 36 | or relative URIs, or URIs based on the 'Host' header. Also allows configuring |
| 37 | which URI class to use. Works on application-wide or per-request basis. |
| 38 | . |
| 39 | Catalyst::Plugin::SmartURI is useful in situations where you're for example, |
| 40 | redirecting to a lighttpd from a firewall rule, instead of a real proxy, and |
| 41 | you want your links and redirects to still work correctly. |
| 42 | . |
| 43 | To use your own URI class, just subclass URI::SmartURI and set uri_class, or |
| 44 | write a class that follows the same interface. |
| 45 | . |
| 46 | This plugin installs a custom $c->request_class, however it does so in a way |
| 47 | that won't break if you've already set $c->request_class yourself, ie. by |
| 48 | using Catalyst::Action::REST (thanks mst!). |