1 /** @file 2 * @brief HTTP request methods 3 */ 4 5 /* 6 * Copyright (c) 2022 Meta 7 * 8 * SPDX-License-Identifier: Apache-2.0 9 */ 10 11 #ifndef ZEPHYR_INCLUDE_NET_HTTP_METHOD_H_ 12 #define ZEPHYR_INCLUDE_NET_HTTP_METHOD_H_ 13 14 /** 15 * @brief HTTP request methods 16 * @defgroup http_methods HTTP request methods 17 * @ingroup networking 18 * @{ 19 */ 20 21 #ifdef __cplusplus 22 extern "C" { 23 #endif 24 25 /** @brief HTTP Request Methods */ 26 enum http_method { 27 HTTP_DELETE = 0, /**< DELETE */ 28 HTTP_GET = 1, /**< GET */ 29 HTTP_HEAD = 2, /**< HEAD */ 30 HTTP_POST = 3, /**< POST */ 31 HTTP_PUT = 4, /**< PUT */ 32 HTTP_CONNECT = 5, /**< CONNECT */ 33 HTTP_OPTIONS = 6, /**< OPTIONS */ 34 HTTP_TRACE = 7, /**< TRACE */ 35 HTTP_COPY = 8, /**< COPY */ 36 HTTP_LOCK = 9, /**< LOCK */ 37 HTTP_MKCOL = 10, /**< MKCOL */ 38 HTTP_MOVE = 11, /**< MOVE */ 39 HTTP_PROPFIND = 12, /**< PROPFIND */ 40 HTTP_PROPPATCH = 13, /**< PROPPATCH */ 41 HTTP_SEARCH = 14, /**< SEARCH */ 42 HTTP_UNLOCK = 15, /**< UNLOCK */ 43 HTTP_BIND = 16, /**< BIND */ 44 HTTP_REBIND = 17, /**< REBIND */ 45 HTTP_UNBIND = 18, /**< UNBIND */ 46 HTTP_ACL = 19, /**< ACL */ 47 HTTP_REPORT = 20, /**< REPORT */ 48 HTTP_MKACTIVITY = 21, /**< MKACTIVITY */ 49 HTTP_CHECKOUT = 22, /**< CHECKOUT */ 50 HTTP_MERGE = 23, /**< MERGE */ 51 HTTP_MSEARCH = 24, /**< MSEARCH */ 52 HTTP_NOTIFY = 25, /**< NOTIFY */ 53 HTTP_SUBSCRIBE = 26, /**< SUBSCRIBE */ 54 HTTP_UNSUBSCRIBE = 27, /**< UNSUBSCRIBE */ 55 HTTP_PATCH = 28, /**< PATCH */ 56 HTTP_PURGE = 29, /**< PURGE */ 57 HTTP_MKCALENDAR = 30, /**< MKCALENDAR */ 58 HTTP_LINK = 31, /**< LINK */ 59 HTTP_UNLINK = 32, /**< UNLINK */ 60 }; 61 62 #ifdef __cplusplus 63 } 64 #endif 65 66 /** 67 * @} 68 */ 69 70 #endif 71