diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-06-05 08:26:47 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-06-05 08:26:47 +0200 |
commit | 3587da9e7c92a486349f4f59a895b69c7000cb00 (patch) | |
tree | 4ccfc5beef825d559c8cfc672d73962fcc0b57da /include/curl | |
parent | 1ce14037c0c4f7448422ba2d4c7f12ceb1289811 (diff) | |
download | curl-3587da9e7c92a486349f4f59a895b69c7000cb00.tar.gz |
curl.h: add CURL_HTTP_VERSION_2
The protocol is named "HTTP/2" after all. It is an alias for the
existing CURL_HTTP_VERSION_2_0 enum.
Diffstat (limited to 'include/curl')
-rw-r--r-- | include/curl/curl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 727f19a4f..eab2f6e99 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -1695,6 +1695,11 @@ enum { CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */ }; +/* Convenience definition simple because the name of the version is HTTP/2 and + not 2.0. The 2_0 version of the enum name was set while the version was + still planned to be 2.0 and we stick to it for compatibility. */ +#define CURL_HTTP_VERSION_2 CURL_HTTP_VERSION_2_0 + /* * Public API enums for RTSP requests */ |