Go to the documentation of this file.
11 #ifndef __NET_HTTPDefines_H__
12 #define __NET_HTTPDefines_H__
15 #define HTTP_MAX_HEADER_SIZE 8000 //8kb
16 #define NET_IS_LOOPBACK_ADDRESS(_arr_) \
17 (_arr_[0] == 127 && _arr_[1] == 0 && (_arr_[2] == 0 || _arr_[2] == 1) && \
23 #define NET_COMMAND_FUNC_NAME "cmd_function"
28 #define HTTP_METHOD_POST "POST"
29 #define HTTP_METHOD_GET "GET"
30 #define HTTP_METHOD_OPTIONS "OPTIONS"
31 #define HTTP_METHOD_PUT "PUT"
36 #define HTTP_MIME_JSON "application/json"
37 #define HTTP_MIME_XML "text/xml"
38 #define HTTP_MIME_TEXT "text/plain"
39 #define HTTP_MIME_HTML "text/html"
40 #define HTTP_MIME_JS "text/javascript"
41 #define HTTP_MIME_CSS "text/css"
42 #define HTTP_MIME_URL "application/x-www-form-urlencoded"
43 #define HTTP_MIME_MULTIPART "multipart/form-data"
44 #define HTTP_MIME_BINARY "application/octet-stream"
45 #define HTTP_MIME_MP4 "video/mp4"
46 #define HTTP_MIME_MP3 "video/mp3"
47 #define HTTP_MIME_OGG "video/ogg"
48 #define HTTP_MIME_WEBM "video/webm"
53 #define HTTP_ACCEPT_JSON_HEADER "application/json, *