diff options
| author | Stefan Boberg <[email protected]> | 2021-09-28 23:24:45 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-28 23:24:45 +0200 |
| commit | 46eebda16a2c3a66bb8ca48488e49d659556d745 (patch) | |
| tree | c5fb2662c2cf5e3fb4efc2e263e8663d37723747 /zenhttp/include | |
| parent | Removed IsPointerToStack() (diff) | |
| download | zen-46eebda16a2c3a66bb8ca48488e49d659556d745.tar.xz zen-46eebda16a2c3a66bb8ca48488e49d659556d745.zip | |
http: ReasonStringForHttpResultCode returns string_view to avoid strlen
Diffstat (limited to 'zenhttp/include')
| -rw-r--r-- | zenhttp/include/zenhttp/httpcommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zenhttp/include/zenhttp/httpcommon.h b/zenhttp/include/zenhttp/httpcommon.h index 62070061c..3e213ece4 100644 --- a/zenhttp/include/zenhttp/httpcommon.h +++ b/zenhttp/include/zenhttp/httpcommon.h @@ -19,7 +19,7 @@ class StringBuilderBase; std::string_view MapContentTypeToString(HttpContentType ContentType); extern HttpContentType (*ParseContentType)(const std::string_view& ContentTypeString); -const char* ReasonStringForHttpResultCode(int HttpCode); +std::string_view ReasonStringForHttpResultCode(int HttpCode); [[nodiscard]] inline bool IsHttpSuccessCode(int HttpCode) |