BSD Ports

www/p5-Plack-Middleware-MethodOverride 0.20 FreeBSD

Override REST methods to Plack apps via POST

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
www, perl5
Package size
12.4 KiB, 43.6 KiB installed

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.

In the other systems

SystemPortVersion
FreeBSDwww/p5-Plack-Middleware-MethodOverride0.20
OpenBSDwww/p5-Plack-Middleware-MethodOverride0.20
NetBSDwww/p5-Plack-Middleware-MethodOverride0.20nb9
DragonFlywww/p5-Plack-Middleware-MethodOverride0.20
HardenedBSDwww/p5-Plack-Middleware-MethodOverride0.20
GhostBSDwww/p5-Plack-Middleware-MethodOverride0.20

Install

Binary package:

pkg install p5-Plack-Middleware-MethodOverride

From the ports tree:

cd /usr/ports/www/p5-Plack-Middleware-MethodOverride/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-Plack-Middleware-MethodOverride>0:www/p5-Plack-Middleware-MethodOverride

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.200.200.200.200.20
FreeBSD:14:quarterly0.200.20n/a0.200.20
FreeBSD:15:latest0.200.20n/a0.200.20
FreeBSD:15:quarterly0.200.20n/an/an/a
FreeBSD:16:latest0.200.20n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

Test 1

The full lists below include those, and their dependencies in turn.

Build dependencies 29
Run dependencies 29
Required by 127

The first 100 are listed.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/Plack/Middleware/MethodOverride.pm
  • %%PERL5_MAN3%%/Plack::Middleware::MethodOverride.3.gz
distinfo 1
FileSizeSHA256
Plack-Middleware-MethodOverride-0.20.tar.gz12715dbfb5a2efb48bfeb01cb3ae1e1c677e155dc7bfe210c7e7f221bae3cb6aab5f1
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.