Port details on branch 2022Q2 |
- p5-Plack-Middleware-MethodOverride Override REST methods to Plack apps via POST
- 0.20 www =0 0.20Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2014-03-29 08:43:28
- Last Update: 2022-09-07 21:58:51
- Commit Hash: fb16dfe
- Also Listed In: perl5
- License: ART10 GPLv1+
- WWW:
- https://metacpan.org/release/Plack-Middleware-MethodOverride
- Description:
- Writing RESTful apps is a good thing, but if you're also trying to support web
browsers, you're probably going to need some hackish workarounds. This module
provides one such workaround for your Plack applications.
Specifically, you can also use a header named X-HTTP-Method-Override (as used by
Google for its APIs) override the POST request method. Or you can add a
parameter named x-tunneled-method to your form action's query. Either way, the
overriding works only via POST requests, not GET.
If either of these attributes are available in a POST request, the
REQUEST_METHOD key of the Plack environment hash will be replaced with its
value. This allows your apps to override any HTTP method over POST. If your
application needs to know that such overriding has taken place, the original
method is stored under the plack.original_request_method key in the Plack
environment hash.
The list of methods you can specify are: GET, POST, HEAD, PUT, DELETE, OPTIONS,
TRACE and CONNECT.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- p5-Plack-Middleware-MethodOverride>0:www/p5-Plack-Middleware-MethodOverride
- To install the port:
- cd /usr/ports/www/p5-Plack-Middleware-MethodOverride/ && make install clean
- To add the package, run one of these commands:
- pkg install www/p5-Plack-Middleware-MethodOverride
- pkg install p5-Plack-Middleware-MethodOverride
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: p5-Plack-Middleware-MethodOverride
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1527438195
SHA256 (Plack-Middleware-MethodOverride-0.20.tar.gz) = dbfb5a2efb48bfeb01cb3ae1e1c677e155dc7bfe210c7e7f221bae3cb6aab5f1
SIZE (Plack-Middleware-MethodOverride-0.20.tar.gz) = 12715
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- p5-Plack>=0 : www/p5-Plack
- perl5>=5.32.r0<5.33 : lang/perl5.32
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Runtime dependencies:
-
- p5-Plack>=0 : www/p5-Plack
- perl5>=5.32.r0<5.33 : lang/perl5.32
- This port is required by:
- for Build
-
- www/p5-Catalyst-Runtime
- for Run
-
- www/p5-Catalyst-Runtime
Configuration Options:
- No options to configure
- Options name:
- www_p5-Plack-Middleware-MethodOverride
- USES:
- perl5
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|