tinyhttp
Loading...
Searching...
No Matches
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 (StrView &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 charurl = 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!

Member Function Documentation

◆ doLoop()

void tinyhttp::ExtensionStreamBasic::doLoop ( )
inlineoverrideprotectedvirtual

Reimplemented from tinyhttp::Extension.

◆ open()

virtual void tinyhttp::ExtensionStreamBasic::open ( HttpServer server)
inlinevirtual

Reimplemented from tinyhttp::Extension.


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