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 * @since 3.3 18 * @version 0.8.0 19 * @ingroup networking 20 * @{ 21 */ 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /** @brief HTTP Request Methods */ 28 enum http_method { 29 HTTP_DELETE = 0, /**< DELETE */ 30 HTTP_GET = 1, /**< GET */ 31 HTTP_HEAD = 2, /**< HEAD */ 32 HTTP_POST = 3, /**< POST */ 33 HTTP_PUT = 4, /**< PUT */ 34 HTTP_CONNECT = 5, /**< CONNECT */ 35 HTTP_OPTIONS = 6, /**< OPTIONS */ 36 HTTP_TRACE = 7, /**< TRACE */ 37 HTTP_COPY = 8, /**< COPY */ 38 HTTP_LOCK = 9, /**< LOCK */ 39 HTTP_MKCOL = 10, /**< MKCOL */ 40 HTTP_MOVE = 11, /**< MOVE */ 41 HTTP_PROPFIND = 12, /**< PROPFIND */ 42 HTTP_PROPPATCH = 13, /**< PROPPATCH */ 43 HTTP_SEARCH = 14, /**< SEARCH */ 44 HTTP_UNLOCK = 15, /**< UNLOCK */ 45 HTTP_BIND = 16, /**< BIND */ 46 HTTP_REBIND = 17, /**< REBIND */ 47 HTTP_UNBIND = 18, /**< UNBIND */ 48 HTTP_ACL = 19, /**< ACL */ 49 HTTP_REPORT = 20, /**< REPORT */ 50 HTTP_MKACTIVITY = 21, /**< MKACTIVITY */ 51 HTTP_CHECKOUT = 22, /**< CHECKOUT */ 52 HTTP_MERGE = 23, /**< MERGE */ 53 HTTP_MSEARCH = 24, /**< MSEARCH */ 54 HTTP_NOTIFY = 25, /**< NOTIFY */ 55 HTTP_SUBSCRIBE = 26, /**< SUBSCRIBE */ 56 HTTP_UNSUBSCRIBE = 27, /**< UNSUBSCRIBE */ 57 HTTP_PATCH = 28, /**< PATCH */ 58 HTTP_PURGE = 29, /**< PURGE */ 59 HTTP_MKCALENDAR = 30, /**< MKCALENDAR */ 60 HTTP_LINK = 31, /**< LINK */ 61 HTTP_UNLINK = 32, /**< UNLINK */ 62 63 /** @cond INTERNAL_HIDDEN */ 64 HTTP_METHOD_END_VALUE /* keep this the last value */ 65 /** @endcond */ 66 }; 67 68 #ifdef __cplusplus 69 } 70 #endif 71 72 /** 73 * @} 74 */ 75 76 #endif 77