NAME
App::PerlWatcher::Watcher::HTTPSimple - The simple HTTP watcher, where actual http responce body is been processed by closure
VERSION
version 0.18
SYNOPSIS
# use the following config for Engine:
{
class => 'App::PerlWatcher::Watcher::HTTPSimple',
config => {
url => 'http://download.finance.yahoo.com/d/quotes.csv?s=EURUSD=X&f=sl1d1t1c1ohgv&e=.csv',
title => '€/$',
frequency => 600,
timeout => 10,
response_handler => sub {
(split(',', $_))[1];
},
on => {
ok => { 1 => 'notice' },
fail => { 10 => 'info' },
},
},
},
ATTRIBUTES
url
The url been wached
response_handler
The callback, which is been called as response_handler($body), and which should return the body to be displayed as result.
processed_response
The last result, which is been stored after invocation of response_handler
AUTHOR
Ivan Baidakou <dmol@gmx.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Ivan Baidakou.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 75:
Non-ASCII character seen before =encoding in ''€/$','. Assuming UTF-8