summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-18 13:18:14 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-18 16:09:13 +0100
commitabb68c192ab50d7182b6d041f290adc55c3b35a5 (patch)
tree20eeb88fb295b66580bb6eb1bb36117d1bf51fa2 /lib/http.h
parente2075f233750bb79d72198ca60b3c821070ecd99 (diff)
downloadcurl-abb68c192ab50d7182b6d041f290adc55c3b35a5.tar.gz
build: repair http disabled but mqtt enabled build
... as the mqtt code reuses the "method" originally used for HTTP. Closes #6344
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/http.h b/lib/http.h
index 3d90e992b..a250ba8f7 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -23,6 +23,17 @@
***************************************************************************/
#include "curl_setup.h"
+typedef enum {
+ HTTPREQ_NONE, /* first in list */
+ HTTPREQ_GET,
+ HTTPREQ_POST,
+ HTTPREQ_POST_FORM, /* we make a difference internally */
+ HTTPREQ_POST_MIME, /* we make a difference internally */
+ HTTPREQ_PUT,
+ HTTPREQ_HEAD,
+ HTTPREQ_LAST /* last in list */
+} Curl_HttpReq;
+
#ifndef CURL_DISABLE_HTTP
#ifdef USE_NGHTTP2
@@ -35,17 +46,6 @@ extern const struct Curl_handler Curl_handler_http;
extern const struct Curl_handler Curl_handler_https;
#endif
-typedef enum {
- HTTPREQ_NONE, /* first in list */
- HTTPREQ_GET,
- HTTPREQ_POST,
- HTTPREQ_POST_FORM, /* we make a difference internally */
- HTTPREQ_POST_MIME, /* we make a difference internally */
- HTTPREQ_PUT,
- HTTPREQ_HEAD,
- HTTPREQ_LAST /* last in list */
-} Curl_HttpReq;
-
/* Header specific functions */
bool Curl_compareheader(const char *headerline, /* line to check */
const char *header, /* header keyword _with_ colon */