Skip to content

Commit 2d3b2fc

Browse files
committed
Use HHP method table from ESP-IDF's nghttp
1 parent dd834b3 commit 2d3b2fc

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

libraries/WebServer/src/HTTP_Method.h

+4-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
#ifndef _HTTP_Method_H_
22
#define _HTTP_Method_H_
33

4-
typedef enum {
5-
HTTP_GET = 0b00000001,
6-
HTTP_POST = 0b00000010,
7-
HTTP_DELETE = 0b00000100,
8-
HTTP_PUT = 0b00001000,
9-
HTTP_PATCH = 0b00010000,
10-
HTTP_HEAD = 0b00100000,
11-
HTTP_OPTIONS = 0b01000000,
12-
HTTP_ANY = 0b01111111,
13-
} HTTPMethod;
4+
#include "http_parser.h"
5+
6+
typedef enum http_method HTTPMethod;
7+
#define HTTP_ANY (HTTPMethod)(255)
148

159
#endif /* _HTTP_Method_H_ */

0 commit comments

Comments
 (0)