FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
esp32_https_server/src/HTTPHeader.hpp at master · mskvortsov/esp32_https_server · GitHub
mskvortsov
esp32_https_server
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
esp32_https_server
/
src
/
HTTPHeader.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (26 loc) · 749 Bytes
Breadcrumbs
esp32_https_server
/
src
/
HTTPHeader.hpp
Copy path
File metadata and controls
32 lines (26 loc) · 749 Bytes
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
#
ifndef
SRC_HTTPHEADER_HPP_
#
define
SRC_HTTPHEADER_HPP_
#
include
<
Arduino.h
>
#
include
<
string
>
namespace
httpsserver
{
/*
*
* \brief Represents a single name/value pair of an HTTP header
*/
class
HTTPHeader
{
public:
HTTPHeader
(
const
std::string &name,
const
std::string &value);
virtual
~HTTPHeader
();
const
std::string _name;
const
std::string _value;
std::string
print
();
};
/*
*
* \brief Normalizes case in header names
*
* It converts the first letter and every letter after a non-alnum character
* to uppercase. For example, "content-length" becomes "Content-Length" and
* "HOST" becomes "Host".
*/
std::string
normalizeHeaderName
(std::string
const
&name);
}
/*
namespace httpsserver
*/
#
endif
/*
SRC_HTTPHEADER_HPP_
*/
Back
|
FazBrowse Home
|
New Git URL