abstract class App::Downloader
- App::Downloader
- Reference
- Object
Overview
Base class for all download clients.
URLs do not necessarily have to be retrieved from the web using a HTTP client. Different types of downloaders could load URLs from local cache for reparsing, or they could download page data via service-specific APIs (e.g. Wikipedia API).
Direct Known Subclasses
Defined in:
app/downloader.crConstructors
Instance Method Summary
Constructor Detail
def self.new(processor : App::Processor, download_tasks : Channel(Tuple(Int32, String, URI)), parse_tasks : Channel(NamedTuple(idx: Int32, url: String, title: String, gt: Time::Span, response: HTTP::Client::Response)), capacity)
#