ESP32 HTTPS Server
httpsserver::ResourceParameters Class Reference

Class used to handle access to the URL parameters. More...

#include <ResourceParameters.hpp>

Public Member Functions

bool isRequestParameterSet (std::string const &name)
 
std::string getRequestParameter (std::string const &name)
 
uint16_t getRequestParameterInt (std::string const &name)
 
void setRequestParameter (std::string const &name, std::string const &value)
 
std::string getUrlParameter (uint8_t idx)
 
uint16_t getUrlParameterInt (uint8_t idx)
 
void resetUrlParameters ()
 
void setUrlParameterCount (uint8_t idx)
 
void setUrlParameter (uint8_t idx, std::string const &val)
 

Detailed Description

Class used to handle access to the URL parameters.

Member Function Documentation

◆ getUrlParameter()

std::string httpsserver::ResourceParameters::getUrlParameter ( uint8_t  idx)

Returns an URL parameter as string.

URL parameters are defined by resource nodes like object/?/property

The parameter idx defines the index of the parameter, starting with 0.

◆ getUrlParameterInt()

uint16_t httpsserver::ResourceParameters::getUrlParameterInt ( uint8_t  idx)

Returns an URL parameter as int.

URL parameters are defined by resource nodes like object/?/property

The parameter idx defines the index of the parameter, starting with 0.


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