Mojolicious::Plugin::Proxy - Proxy requests to a backend server
plugin 'proxy'; get '/foo' => sub { shift->proxy_to('http://mojolicio.us/') };
Proxy requests to backend URL using Mojo::UserAgent.
Proxies the current request to $url using the Mojo::Client get method. supports one parameter:
If this parameter is set to 1, will get query parameters from the current request and proxy them to the backend.
Copyright (C) 2008-2010, Marcus Ramberg.
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
Mojolicious, Mojolicious::Lite
To install Mojolicious::Plugin::Proxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::Proxy
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::Proxy
For more information on module installation, please visit the detailed CPAN module installation guide.