aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/misc/httpcodes.h
diff options
context:
space:
mode:
authorprout <prout@yandex-team.ru>2022-02-10 16:49:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:43 +0300
commitd2247f243d31adde8feb765324e40c83c5a90999 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/misc/httpcodes.h
parent7b7fa28b9099b7adca890459a699c6ba5eeff4ca (diff)
downloadydb-d2247f243d31adde8feb765324e40c83c5a90999.tar.gz
Restoring authorship annotation for <prout@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/misc/httpcodes.h')
-rw-r--r--library/cpp/http/misc/httpcodes.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/http/misc/httpcodes.h b/library/cpp/http/misc/httpcodes.h
index c94c61cf37..cbfbaa1188 100644
--- a/library/cpp/http/misc/httpcodes.h
+++ b/library/cpp/http/misc/httpcodes.h
@@ -1,7 +1,7 @@
#pragma once
-#include <util/generic/strbuf.h>
-
+#include <util/generic/strbuf.h>
+
enum HttpCodes {
HTTP_CONTINUE = 100,
HTTP_SWITCHING_PROTOCOLS = 101,
@@ -76,14 +76,14 @@ enum HttpCodes {
};
TStringBuf HttpCodeStrEx(int code) noexcept;
-
+
inline TStringBuf HttpCodeStr(int code) noexcept {
- return HttpCodeStrEx(code).Skip(4);
-}
-
+ return HttpCodeStrEx(code).Skip(4);
+}
+
inline bool IsHttpCode(int code) noexcept {
return HttpCodeStrEx(code).data() != HttpCodeStrEx(0).data();
-}
+}
inline bool IsUserError(int code) noexcept {
return code >= 400 && code < 500;