FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
esp32_https_server/https/HTTPRequest.hpp at master · gmos/esp32_https_server · GitHub
gmos
esp32_https_server
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
esp32_https_server
/
https
/
HTTPRequest.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
49 lines (36 loc) · 977 Bytes
Breadcrumbs
esp32_https_server
/
https
/
HTTPRequest.hpp
Copy path
File metadata and controls
49 lines (36 loc) · 977 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* HTTPRequest.hpp
*
* Created on: Dec 13, 2017
* Author: frank
*/
#
ifndef
HTTPS_HTTPREQUEST_HPP_
#
define
HTTPS_HTTPREQUEST_HPP_
#
include
<
Arduino.h
>
#
include
<
string
>
#
include
"
util.hpp
"
#
include
"
ConnectionContext.hpp
"
#
include
"
ResourceParameters.hpp
"
#
include
"
HTTPHeaders.hpp
"
#
include
"
HTTPHeader.hpp
"
namespace
httpsserver
{
class
HTTPRequest
{
public:
HTTPRequest
(ConnectionContext * con, HTTPHeaders * headers, ResourceParameters * resource);
virtual
~HTTPRequest
();
std::string
getHeader
(std::string name);
size_t
readChars
(
char
* buffer,
size_t
length);
size_t
readBytes
(byte * buffer,
size_t
length);
size_t
getContentLength
();
bool
requestComplete
();
void
discardRequestBody
();
ResourceParameters *
getParams
();
private:
ConnectionContext * _con;
HTTPHeaders * _headers;
ResourceParameters * _params;
bool
_contentLengthSet;
size_t
_remainingContent;
};
}
/*
namespace httpsserver
*/
#
endif
/*
HTTPS_HTTPREQUEST_HPP_
*/
Back
|
FazBrowse Home
|
New Git URL