Plack::Middleware::PeriAHS::Respond - Send Riap request to Riap server and send the response to client
version 0.14
# in your app.psgi use Plack::Builder; builder { enable "PeriAHS::Respond"; };
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.
$env-
The result will also be put in $env-{"riap.response"}>.
Steven Haryanto <stevenharyanto@gmail.com>
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.
To install Perinci::Access::HTTP::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perinci::Access::HTTP::Server
CPAN shell
perl -MCPAN -e shell install Perinci::Access::HTTP::Server
For more information on module installation, please visit the detailed CPAN module installation guide.