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

NAME

Comics::Fetcher::Base -- Base class for Fetchers.

SYNOPSIS

  package Comics::Fetcher::Direct;
  use parent qw(Comics::Fetcher::Base);

DESCRIPTION

The Fetcher Base class provides tools for fetching URLs and saving data to disk.

The primary entry point for a Fetcher is method fetch, which must be implemented by the derived classes.

METHODS

spoolfile($file)

Returns the full name for the given i<file> in the configured spool directory.

urlabs($url, $path)

Returns the full URL for the given i<path>, possibly relative to url.

save_image($image, $dataref)

Saves the contents of dataref to the spooldir, using image as the name for the file.

See also: spoolfile.

save_html($html)

Generates and saves the HTML fragment for this comic to the spooldir, using html as the name for the file.

See also: spoolfile.