NAME
Plack::Middleware::PeriAHS::Respond - Send Riap request to Riap server and send the response to client
VERSION
version 0.13
SYNOPSIS
# in your app.psgi
use Plack::Builder;
builder {
enable "PeriAHS::Respond";
};
DESCRIPTION
This middleware sends Riap request ($env-
{"riap.request"}>) to Riap client (Perinci::Access object, stored in $env-
{"periahs.riap_client"}> by PeriAHS::ParseRequest middleware), format the result, and send it to client. This middleware is the one that sends response to client and should be put as the last middleware after all the parsing, authentication, and authorization middlewares.
The result will also be put in $env-
{"riap.response"}>.
CONFIGURATIONS
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.