diff options
author | prout <prout@yandex-team.ru> | 2022-02-10 16:49:42 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:42 +0300 |
commit | 7b7fa28b9099b7adca890459a699c6ba5eeff4ca (patch) | |
tree | cffe238e08f715008f864d223dd0db8fc1f92f9f /library/cpp/http/misc/httpcodes.h | |
parent | 0fd1998e1b2369f50fb694556f817d3c7fef10c8 (diff) | |
download | ydb-7b7fa28b9099b7adca890459a699c6ba5eeff4ca.tar.gz |
Restoring authorship annotation for <prout@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/misc/httpcodes.h')
-rw-r--r-- | library/cpp/http/misc/httpcodes.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/http/misc/httpcodes.h b/library/cpp/http/misc/httpcodes.h index cbfbaa1188..c94c61cf37 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; |