SSDP::Message Class Reference

Message using regular HTTP header management class. More...

#include <Message.h>

Inheritance diagram for SSDP::Message:
Collaboration diagram for SSDP::Message:

Public Member Functions

 Message ()=default
 
 Message (const Message &)=default
 
 Message (const BasicMessage &msg)
 
- Public Member Functions inherited from HttpHeaders
 HttpHeaders ()=default
 
 HttpHeaders (const HttpHeaders &headers)
 
Iterator begin () const
 
Iterator end () const
 
const Stringoperator[] (const String &name) const
 Fetch a reference to the header field value by name. More...
 
Stringoperator[] (const String &name)
 Fetch a reference to the header field value by name. More...
 
String operator[] (unsigned index) const
 Return the HTTP header line for the value at the given index. More...
 
template<bool is_const>
String operator[] (const BaseElement< is_const > &elem) const
 
bool contains (const String &name) const
 Determine if given header field is present. More...
 
bool append (const HttpHeaderFieldName &name, const String &value)
 Append value to multi-value field. More...
 
void remove (const String &name)
 
void setMultiple (const HttpHeaders &headers)
 
HttpHeadersoperator= (const HttpHeaders &headers)
 
void clear ()
 
DateTime getLastModifiedDate () const
 
DateTime getServerDate () const
 
bool contains (const K &key) const
 
void remove (const K &key)
 
unsigned int count () const
 
- Public Member Functions inherited from HttpHeaderFields
Flags getFlags (HttpHeaderFieldName name) const
 Get flags (if any) for given header field. More...
 
String toString (HttpHeaderFieldName name) const
 
String toString (HttpHeaderFieldName name, const String &value) const
 
HttpHeaderFieldName fromString (const String &name) const
 Find the enumerated value for the given field name string. More...
 
HttpHeaderFieldName findOrCreate (const String &name)
 Find the enumerated value for the given field name string, create a custom entry if not found. More...
 
void clear ()
 

Additional Inherited Members

- Public Types inherited from HttpHeaderFields
enum class  Flag { Multi }
 Flag values providing additional information about header fields. More...
 
using Flags = BitSet< uint8_t, Flag, 1 >
 
- Static Public Member Functions inherited from HttpHeaderFields
static String toString (const String &name, const String &value)
 Produce a string for output in the HTTP header, with line ending. More...
 
- Public Attributes inherited from SSDP::BaseMessage< HttpHeaders >
MessageType type
 
IpAddress remoteIP
 
uint16_t remotePort
 

Detailed Description

Message using regular HTTP header management class.

Note
More flexible than BasicMessage but requires additional memory allocations

Constructor & Destructor Documentation

◆ Message() [1/3]

SSDP::Message::Message ( )
default

◆ Message() [2/3]

SSDP::Message::Message ( const Message )
default

◆ Message() [3/3]

SSDP::Message::Message ( const BasicMessage msg)

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