Definition hyperpage.hpp:46
virtual const std::string & get_mime_type() const =0
gets the MIME type of the page.
virtual const std::string & get_path() const =0
gets the URI path of the page.
virtual size_t get_length() const =0
gets the content length of the page.
virtual const uint8_t * get_content() const =0
gets the content of the page.
reader(const std::string &db_path)
Constructs a reader for the hyperpage database.
std::unique_ptr< page > load(const std::string &page_path)
Loads a page from the hyperpage database.
void store(const page &page)
Stores a page in the hyperpage database.
writer(const std::string &db_path)
Constructs a writer for the hyperpage database.
Definition hyperpage.hpp:38
std::string mime_type(const std::string &path)