Networking Http Data Stream
HttpStream¶
This class allows you to stream data from the web using a persisting HTTP connection. To use it properly you must use a non-blocking HttpClient method.
Library¶
Includes¶
#include "http/client/data/HttpStream.h"
Reference¶
HttpStream()
Instantiates the object.
void readNext(byte* buf, int size)
Passes a buffer of address buf and size size to the instance. When it receives data it will be stored in this buffer. When the buffer is full it throttles the client until this function is called again.
bool readable()
Returns true if there is data available to read.
int readLen()
Returns the actual length of the payload written in the buffer.
Examples¶
None yet, but coming soon...