-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Broke HTTP_Method out into a separate library for reuse in ESPAsyncWe…
…bServer (#1562)
- Loading branch information
1 parent
3967beb
commit c4c946a
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef _HTTP_Method_H_ | ||
#define _HTTP_Method_H_ | ||
|
||
typedef enum { | ||
HTTP_GET = 0b00000001, | ||
HTTP_POST = 0b00000010, | ||
HTTP_DELETE = 0b00000100, | ||
HTTP_PUT = 0b00001000, | ||
HTTP_PATCH = 0b00010000, | ||
HTTP_HEAD = 0b00100000, | ||
HTTP_OPTIONS = 0b01000000, | ||
HTTP_ANY = 0b01111111, | ||
} HTTPMethod; | ||
|
||
#endif /* _HTTP_Method_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters