Jakob Voß > Plack-Middleware-REST > Plack::Middleware::REST::Util

Download:
Plack-Middleware-REST-0.10.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

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
syntax highlighting: