The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::PerlWatcher::Watcher::HTTP - The base role for watching external events via HTTP

VERSION

version 0.20

ATTRIBUTES

url

The subclass should provide the watched URL

frequency

The frequency of poll in seconds

timeout

The http transaction timeout. Default value: 5 seconds

The watcher title

watcher_callback

The callback, which will be called with status object

METHODS

process_http_response

The subclass should provide the process_http_response($body, $headers) method which is been called only on successfull responce (http code = 200)

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.