aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-15 22:25:27 +0200
committerStefan Boberg <[email protected]>2021-09-15 22:25:27 +0200
commitd47dfe0c63d04348b0646567df4a2a4ae7b7732f (patch)
tree6de0f434ae0eab0f6cb9ed208bf03ad046bddf44 /zenhttp/include
parentMade ZenContentType enum members have fixed value (for persistence), and adde... (diff)
downloadzen-d47dfe0c63d04348b0646567df4a2a4ae7b7732f.tar.xz
zen-d47dfe0c63d04348b0646567df4a2a4ae7b7732f.zip
Added support for compressed binary MIME type conversion
Diffstat (limited to 'zenhttp/include')
-rw-r--r--zenhttp/include/zenhttp/httpcommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zenhttp/include/zenhttp/httpcommon.h b/zenhttp/include/zenhttp/httpcommon.h
index 41ec706f4..08f1b47a9 100644
--- a/zenhttp/include/zenhttp/httpcommon.h
+++ b/zenhttp/include/zenhttp/httpcommon.h
@@ -18,8 +18,8 @@ class CbPackage;
class StringBuilderBase;
std::string_view MapContentTypeToString(HttpContentType ContentType);
-HttpContentType ParseContentType(const std::string_view& ContentTypeString);
-const char* ReasonStringForHttpResultCode(int HttpCode);
+extern HttpContentType (*ParseContentType)(const std::string_view& ContentTypeString);
+const char* ReasonStringForHttpResultCode(int HttpCode);
[[nodiscard]] inline bool
IsHttpSuccessCode(int HttpCode)