17 #ifndef __URI_FETCHERS_COPY_HPP__
18 #define __URI_FETCHERS_COPY_HPP__
41 virtual std::set<std::string>
schemes()
const;
43 virtual std::string
name()
const;
47 const std::string& directory,
57 #endif // __URI_FETCHERS_COPY_HPP__
virtual std::string name() const
Returns the name that this plugin registered with.
virtual ~CopyFetcherPlugin()
Definition: copy.hpp:39
static const char NAME[]
Definition: copy.hpp:35
static Try< process::Owned< Fetcher::Plugin > > create(const Flags &flags)
#define flags
Definition: decoder.hpp:18
virtual process::Future< Nothing > fetch(const URI &uri, const std::string &directory, const Option< std::string > &data=None()) const
Fetches a URI to the given directory.
virtual std::set< std::string > schemes() const
Returns the URI schemes that this plugin handles.
Represents a fetcher plugin that handles one or more URI schemes.
Definition: fetcher.hpp:52