NAME

Plack::Middleware::REST::Util - Utility methods to create RESTful PSGI applications

SYNOPSIS

use Plack::Middleware::REST::Util;

$id  = request_id($env)      # empty string or local resource identifier
$uri = request_uri($env)     # resource identifier of current request
$uri = request_uri($env,$id) # resource identifier of modified request
($content => $type) = request_content($env); # send content and MIME type