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

Extension which supports streaming to multiple clients. It makes sure that same content is streamed to multiple clients when you call the writes or printlns methods in your loop(); Only a subset of the stream output functions is avaiblable! More...

#include <ExtensionStreamBasic.h>

Inheritance diagram for tinyhttp::ExtensionStreamBasic:
tinyhttp::Extension

Public Member Functions

 ExtensionStreamBasic (const char *url, HttpStreamedOutput &out, TinyMethodID method=T_GET)
 Default Constructor.
 
void close ()
 
HttpStreamedOutputgetOutput ()
 
bool isOpen ()
 
virtual void open (HttpServer *server)
 
int print (const char *str)
 
int println (const char *str)
 
void setReplyHeader (Str &header)
 Defines a standard reply header.
 
int write (uint8_t *content, int len)
 

Protected Member Functions

void doLoop () override
 

Protected Attributes

HttpRequestHandlerLine hl {1}
 
TinyMethodID method
 
HttpStreamedOutputout = nullptr
 
const char * url = nullptr
 

Friends

class ExtensionStream
 

Detailed Description

Extension which supports streaming to multiple clients. It makes sure that same content is streamed to multiple clients when you call the writes or printlns methods in your loop(); Only a subset of the stream output functions is avaiblable!


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