NAME
WARC::Record::Replay - WARC record replay registry and autoloading
SYNOPSIS
use WARC::Record;
$object = $record->replay;
DESCRIPTION
This is an internal module that provides a registry of protocol replay support modules and an autoloading facility.
- WARC::Record::Replay::register { predicate } $handler
-
Add a handler to the internal list of replay handlers. The given handler will be used for records on which the given predicate returns true.
The predicate will be evaluated with $_ locally set to the record object to be replayed and @_ empty each time a record is replayed.
- WARC::Record::Replay::find_handlers( $record )
-
Return a list of handlers that can replay the protocol message in $record.
AUTHOR
Jacob Bachmeyer, <jcb@cpan.org>
SEE ALSO
COPYRIGHT AND LICENSE
Copyright (C) 2019 by Jacob Bachmeyer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.