NAME
Terse::Plugin::UA - Terse LWP::UserAgent plugin.
VERSION
Version 0.03
SYNOPSIS
Quick summary of what the module does.
Perhaps a little code snippet.
package MyApp::Plugin::UA;
use base 'Terse::Plugin::UA';
1;
...
package MyApp::Model::Orange;
use base 'Terse::Model';
sub one {
my ($self, $t, $params) = @_;
return $t->plugin('ua')->post(
path => $t->plugin('config')->find('path/to/url'),
params => $params
);
}
sub two {
my ($self, $t, $params) = @_;
return $t->plugin('ua')->get(
path => $t->plugin('config')->find('path/to/other/url'),
params => $params
);
}
1;
...
package MyApp::Controller::Orange;
use base 'Terse::Controller';
sub demo {
my ($self, $t) = @_;
my $secret_teller = $t->model('orange')->one({
...
});
}
1;
AUTHOR
LNATION, <email at lnation.org>
BUGS
Please report any bugs or feature requests to bug-terse-plugin-ua at rt.cpan.org
, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Terse-Plugin-UA. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Terse::Plugin::UA
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
This software is Copyright (c) 2023 by LNATION.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)