#include <HttpParams.h>

Inheritance diagram for HttpParams:
[legend]
Collaboration diagram for HttpParams:
[legend]

Public Types

typedef bool(* comparator) (const String &, const String &)
 

Public Member Functions

 HttpParams ()=default
 
 HttpParams (const HttpParams &params)
 
 HttpParams (String query)
 
void parseQuery (char *query)
 Called from URL class to process query section of a URI. More...
 
String toString () const
 Return full escaped content for incorporation into a URI. More...
 
 operator String () const
 
HttpParamsoperator= (const HttpParams &params)
 
size_t printTo (Print &p) const override
 
void debugPrintTo (Print &p) const
 Printable output for debugging. More...
 
unsigned int count () const
 
const StringkeyAt (unsigned int idx) const
 
StringkeyAt (unsigned int idx)
 
const StringvalueAt (unsigned int idx) const
 
StringvalueAt (unsigned int idx)
 
const Stringoperator[] (const String &key) const
 
Stringoperator[] (const String &key)
 
void allocate (unsigned int newSize)
 
int indexOf (const String &key) const
 
bool contains (const String &key) const
 
void removeAt (unsigned index)
 
void remove (const String &key)
 
void clear ()
 
void setMultiple (const HashMap< String, String > &map)
 
void setNullValue (const String &nullv)
 

Protected Attributes

String ** keys
 
String ** values
 
String nil
 
uint16_t currentIndex
 
uint16_t size
 
comparator cb_comparator
 

Detailed Description

Todo:
values stored in escaped form, unescape return value and escape provided values. Revise HttpBodyParser.cpp as it will no longer do this job.

Member Typedef Documentation

◆ comparator

typedef bool(* HashMap< String , String >::comparator) (const String &, const String &)
inherited

Constructor & Destructor Documentation

◆ HttpParams() [1/3]

HttpParams::HttpParams ( )
default

◆ HttpParams() [2/3]

HttpParams::HttpParams ( const HttpParams params)
inline

◆ HttpParams() [3/3]

HttpParams::HttpParams ( String  query)
inline

Member Function Documentation

◆ allocate()

void HashMap< String , String >::allocate ( unsigned int  newSize)
inherited

◆ clear()

void HashMap< String , String >::clear ( void  )
inherited

◆ contains()

bool HashMap< String , String >::contains ( const String key) const
inlineinherited

◆ count()

unsigned int HashMap< String , String >::count ( ) const
inlineinherited

◆ debugPrintTo()

void HttpParams::debugPrintTo ( Print p) const

Printable output for debugging.

Parameters
p

◆ indexOf()

int HashMap< String , String >::indexOf ( const String key) const
inherited

◆ keyAt() [1/2]

const String & HashMap< String , String >::keyAt ( unsigned int  idx) const
inlineinherited

◆ keyAt() [2/2]

String & HashMap< String , String >::keyAt ( unsigned int  idx)
inlineinherited

◆ operator String()

HttpParams::operator String ( ) const
inline

◆ operator=()

HttpParams& HttpParams::operator= ( const HttpParams params)
inline

◆ operator[]() [1/2]

const String & HashMap< String , String >::operator[] ( const String key) const
inlineinherited

◆ operator[]() [2/2]

String & HashMap< String , String >::operator[] ( const String key)
inherited

◆ parseQuery()

void HttpParams::parseQuery ( char *  query)

Called from URL class to process query section of a URI.

Parameters
queryextracted from URI, with or without '?' prefix
Return values
booltrue on success, false if parsing failed
Note
query string is modified by this call

◆ printTo()

size_t HttpParams::printTo ( Print p) const
overridevirtual

Implements Printable.

◆ remove()

void HashMap< String , String >::remove ( const String key)
inlineinherited

◆ removeAt()

void HashMap< String , String >::removeAt ( unsigned  index)
inherited

◆ setMultiple()

void HashMap< String , String >::setMultiple ( const HashMap< String , String > &  map)
inherited

◆ setNullValue()

void HashMap< String , String >::setNullValue ( const String nullv)
inlineinherited

◆ toString()

String HttpParams::toString ( ) const

Return full escaped content for incorporation into a URI.

◆ valueAt() [1/2]

const String & HashMap< String , String >::valueAt ( unsigned int  idx) const
inlineinherited

◆ valueAt() [2/2]

String & HashMap< String , String >::valueAt ( unsigned int  idx)
inlineinherited

Member Data Documentation

◆ cb_comparator

comparator HashMap< String , String >::cb_comparator
protectedinherited

◆ currentIndex

uint16_t HashMap< String , String >::currentIndex
protectedinherited

◆ keys

String ** HashMap< String , String >::keys
protectedinherited

◆ nil

String HashMap< String , String >::nil
protectedinherited

◆ size

uint16_t HashMap< String , String >::size
protectedinherited

◆ values

String ** HashMap< String , String >::values
protectedinherited

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