FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
esp32_https_server/src/ResourceParameters.hpp at master · ZebZeb13/esp32_https_server · GitHub
ZebZeb13
esp32_https_server
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
esp32_https_server
/
src
/
ResourceParameters.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
42 lines (31 loc) · 1.03 KB
Breadcrumbs
esp32_https_server
/
src
/
ResourceParameters.hpp
Copy path
File metadata and controls
42 lines (31 loc) · 1.03 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
ifndef
SRC_RESOURCEPARAMETERS_HPP_
#
define
SRC_RESOURCEPARAMETERS_HPP_
#
include
<
Arduino.h
>
#
include
<
string
>
//
Arduino declares it's own min max, incompatible with the stl...
#
undef
min
#
undef
max
#
include
<
vector
>
#
include
<
utility
>
#
include
"
util.hpp
"
namespace
httpsserver
{
struct
requestparam_t
{std::string name; std::string value;};
class
ResourceParameters
{
public:
ResourceParameters
();
virtual
~ResourceParameters
();
bool
isRequestParameterSet
(std::string &name);
std::string
getRequestParameter
(std::string &name);
uint16_t
getRequestParameterInt
(std::string &name);
void
setRequestParameter
(std::string name, std::string 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 val);
private:
std::vector<std::string> _urlParams;
std::vector<std::pair<std::string, std::string>> _reqParams;
};
}
/*
namespace httpsserver
*/
#
endif
/*
SRC_RESOURCEPARAMETERS_HPP_
*/
Back
|
FazBrowse Home
|
New Git URL