tinyhttp
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
tinyhttp::WebCopy Class Reference

Functionality which dumps a website to a SD drive. When the simulate flag is set we do the regular processing but we do not write and information to the SD drive. More...

#include <WebCopy.h>

Public Member Functions

 WebCopy (Client &client, bool inDoLoop=true, int cpin=-1, int bufferSize=512)
 default constructor
 
 ~WebCopy ()
 Destructor - we release the used memory.
 
void doLoop ()
 
bool isActive ()
 
virtual void setFileNameMgr (SDFileNameMgr &fileNameMgr)
 
virtual void start (const char *startUrlChar)
 
virtual void stop ()
 

Protected Member Functions

virtual void clear ()
 
bool createEmptyFile (Str urlStr)
 
File createFile (Str &urlStr, Str &mime)
 
void extractReferences (uint8_t *buffer, int len)
 
Str getMime (Url &url)
 
void processContent (Str urlStr)
 
void processFile (File &file, Str &mimeStr)
 
void processHtml (File &file)
 
void processOthers (File &file)
 
void reportHeap ()
 
virtual void startDump ()
 dumps the url to a file while for all stack
 

Protected Attributes

bool active
 
int buffer_size
 
SDFileNameMgr file_name_mgr
 
HttpRequest http
 
int max_level
 
bool processing_in_do_loop
 
SDStack stack = SDStack("/stack.txt")
 
Url start_url
 
Url url
 
UrlExtractor url_extractor
 

Detailed Description

Functionality which dumps a website to a SD drive. When the simulate flag is set we do the regular processing but we do not write and information to the SD drive.


The documentation for this class was generated from the following file: