Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
c4c946a8
Commit
c4c946a8
authored
Jul 02, 2018
by
lbernstone
Committed by
Me No Dev
Jul 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Broke HTTP_Method out into a separate library for reuse in ESPAsyncWebServer (#1562)
parent
3967beb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
libraries/WebServer/src/HTTP_Method.h
libraries/WebServer/src/HTTP_Method.h
+15
-0
libraries/WebServer/src/WebServer.h
libraries/WebServer/src/WebServer.h
+1
-1
No files found.
libraries/WebServer/src/HTTP_Method.h
0 → 100644
View file @
c4c946a8
#ifndef _HTTP_Method_H_
#define _HTTP_Method_H_
typedef
enum
{
HTTP_GET
=
0
b00000001
,
HTTP_POST
=
0
b00000010
,
HTTP_DELETE
=
0
b00000100
,
HTTP_PUT
=
0
b00001000
,
HTTP_PATCH
=
0
b00010000
,
HTTP_HEAD
=
0
b00100000
,
HTTP_OPTIONS
=
0
b01000000
,
HTTP_ANY
=
0
b01111111
,
}
HTTPMethod
;
#endif
/* _HTTP_Method_H_ */
libraries/WebServer/src/WebServer.h
View file @
c4c946a8
...
...
@@ -27,8 +27,8 @@
#include <functional>
#include <memory>
#include <WiFi.h>
#include "HTTP_Method.h"
enum
HTTPMethod
{
HTTP_ANY
,
HTTP_GET
,
HTTP_POST
,
HTTP_PUT
,
HTTP_PATCH
,
HTTP_DELETE
,
HTTP_OPTIONS
};
enum
HTTPUploadStatus
{
UPLOAD_FILE_START
,
UPLOAD_FILE_WRITE
,
UPLOAD_FILE_END
,
UPLOAD_FILE_ABORTED
};
enum
HTTPClientStatus
{
HC_NONE
,
HC_WAIT_READ
,
HC_WAIT_CLOSE
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment