aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbazil <bazil@yandex-team.ru>2022-02-10 16:49:43 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:43 +0300
commit64b907678a38848c4af3d0270ccee688c5d7752c (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent18b37a6b1f9505f53dbc85a6f934d9f1ee4612e2 (diff)
downloadydb-64b907678a38848c4af3d0270ccee688c5d7752c.tar.gz
Restoring authorship annotation for <bazil@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--library/cpp/http/fetch/exthttpcodes.cpp4
-rw-r--r--library/cpp/http/fetch/exthttpcodes.h6
-rw-r--r--library/cpp/http/misc/httpcodes.cpp36
-rw-r--r--library/cpp/http/misc/httpcodes.h36
4 files changed, 41 insertions, 41 deletions
diff --git a/library/cpp/http/fetch/exthttpcodes.cpp b/library/cpp/http/fetch/exthttpcodes.cpp
index 8978eecc0c..acc05650c8 100644
--- a/library/cpp/http/fetch/exthttpcodes.cpp
+++ b/library/cpp/http/fetch/exthttpcodes.cpp
@@ -69,14 +69,14 @@ static http_flag HTTP_FLAG[] = {
{HTTP_SERVICE_UNAVAILABLE, ShouldDisconnect | ShouldRetry | MarkSuspect}, // 503
{HTTP_GATEWAY_TIME_OUT, ShouldDisconnect | ShouldRetry | MarkSuspect}, // 504
{HTTP_HTTP_VERSION_NOT_SUPPORTED, CrazyServer | ShouldDisconnect}, // 505
-
+
{HTTP_VARIANT_ALSO_NEGOTIATES, CrazyServer | ShouldDisconnect}, // 506
{HTTP_INSUFFICIENT_STORAGE, CrazyServer | ShouldDisconnect}, // 507
{HTTP_LOOP_DETECTED, CrazyServer | ShouldDisconnect}, // 508
{HTTP_BANDWIDTH_LIMIT_EXCEEDED, ShouldDisconnect | ShouldRetry | MarkSuspect}, // 509
{HTTP_NOT_EXTENDED, ShouldDelete}, // 510
{HTTP_NETWORK_AUTHENTICATION_REQUIRED, ShouldDelete}, // 511
-
+
// custom
{HTTP_BAD_RESPONSE_HEADER, CrazyServer}, // 1000
{HTTP_CONNECTION_LOST, ShouldRetry}, // 1001
diff --git a/library/cpp/http/fetch/exthttpcodes.h b/library/cpp/http/fetch/exthttpcodes.h
index 0215e40514..6b525052cd 100644
--- a/library/cpp/http/fetch/exthttpcodes.h
+++ b/library/cpp/http/fetch/exthttpcodes.h
@@ -117,7 +117,7 @@ enum HttpFlags {
// connection
ShouldDisconnect = 1,
ShouldRetry = 2,
- // UNUSED 4
+ // UNUSED 4
// indexer
ShouldReindex = 8,
@@ -125,8 +125,8 @@ enum HttpFlags {
CheckLocation = 32,
CheckLinks = 64,
MarkSuspect = 128,
- // UNUSED 256
- // UNUSED 512
+ // UNUSED 256
+ // UNUSED 512
MoveRedir = 1024,
CanBeFake = 2048,
};
diff --git a/library/cpp/http/misc/httpcodes.cpp b/library/cpp/http/misc/httpcodes.cpp
index 3930091f30..ad8c80ac1e 100644
--- a/library/cpp/http/misc/httpcodes.cpp
+++ b/library/cpp/http/misc/httpcodes.cpp
@@ -6,7 +6,7 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("100 Continue");
case HTTP_SWITCHING_PROTOCOLS:
return TStringBuf("101 Switching protocols");
- case HTTP_PROCESSING:
+ case HTTP_PROCESSING:
return TStringBuf("102 Processing");
case HTTP_OK:
@@ -23,11 +23,11 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("205 Reset content");
case HTTP_PARTIAL_CONTENT:
return TStringBuf("206 Partial content");
- case HTTP_MULTI_STATUS:
+ case HTTP_MULTI_STATUS:
return TStringBuf("207 Multi status");
- case HTTP_ALREADY_REPORTED:
+ case HTTP_ALREADY_REPORTED:
return TStringBuf("208 Already reported");
- case HTTP_IM_USED:
+ case HTTP_IM_USED:
return TStringBuf("226 IM used");
case HTTP_MULTIPLE_CHOICES:
@@ -44,7 +44,7 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("305 Use proxy");
case HTTP_TEMPORARY_REDIRECT:
return TStringBuf("307 Temporarily redirect");
- case HTTP_PERMANENT_REDIRECT:
+ case HTTP_PERMANENT_REDIRECT:
return TStringBuf("308 Permanent redirect");
case HTTP_BAD_REQUEST:
@@ -83,29 +83,29 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("416 Requested Range Not Satisfiable");
case HTTP_EXPECTATION_FAILED:
return TStringBuf("417 Expectation Failed");
- case HTTP_I_AM_A_TEAPOT:
+ case HTTP_I_AM_A_TEAPOT:
return TStringBuf("418 I Am A Teapot");
- case HTTP_AUTHENTICATION_TIMEOUT:
+ case HTTP_AUTHENTICATION_TIMEOUT:
return TStringBuf("419 Authentication Timeout");
- case HTTP_MISDIRECTED_REQUEST:
+ case HTTP_MISDIRECTED_REQUEST:
return TStringBuf("421 Misdirected Request");
case HTTP_UNPROCESSABLE_ENTITY:
return TStringBuf("422 Unprocessable Entity");
- case HTTP_LOCKED:
+ case HTTP_LOCKED:
return TStringBuf("423 Locked");
- case HTTP_FAILED_DEPENDENCY:
+ case HTTP_FAILED_DEPENDENCY:
return TStringBuf("424 Failed Dependency");
case HTTP_UNORDERED_COLLECTION:
return TStringBuf("425 Unordered Collection");
- case HTTP_UPGRADE_REQUIRED:
+ case HTTP_UPGRADE_REQUIRED:
return TStringBuf("426 Upgrade Required");
- case HTTP_PRECONDITION_REQUIRED:
+ case HTTP_PRECONDITION_REQUIRED:
return TStringBuf("428 Precondition Required");
case HTTP_TOO_MANY_REQUESTS:
return TStringBuf("429 Too Many Requests");
case HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE:
return TStringBuf("431 Request Header Fields Too Large");
- case HTTP_UNAVAILABLE_FOR_LEGAL_REASONS:
+ case HTTP_UNAVAILABLE_FOR_LEGAL_REASONS:
return TStringBuf("451 Unavailable For Legal Reason");
case HTTP_INTERNAL_SERVER_ERROR:
@@ -120,17 +120,17 @@ TStringBuf HttpCodeStrEx(int code) noexcept {
return TStringBuf("504 Gateway time out");
case HTTP_HTTP_VERSION_NOT_SUPPORTED:
return TStringBuf("505 HTTP version not supported");
- case HTTP_VARIANT_ALSO_NEGOTIATES:
+ case HTTP_VARIANT_ALSO_NEGOTIATES:
return TStringBuf("506 Variant also negotiates");
- case HTTP_INSUFFICIENT_STORAGE:
+ case HTTP_INSUFFICIENT_STORAGE:
return TStringBuf("507 Insufficient storage");
- case HTTP_LOOP_DETECTED:
+ case HTTP_LOOP_DETECTED:
return TStringBuf("508 Loop Detected");
case HTTP_BANDWIDTH_LIMIT_EXCEEDED:
return TStringBuf("509 Bandwidth Limit Exceeded");
- case HTTP_NOT_EXTENDED:
+ case HTTP_NOT_EXTENDED:
return TStringBuf("510 Not Extended");
- case HTTP_NETWORK_AUTHENTICATION_REQUIRED:
+ case HTTP_NETWORK_AUTHENTICATION_REQUIRED:
return TStringBuf("511 Network Authentication Required");
case HTTP_UNASSIGNED_512:
return TStringBuf("512 Unassigned");
diff --git a/library/cpp/http/misc/httpcodes.h b/library/cpp/http/misc/httpcodes.h
index a29b45ddc0..cbfbaa1188 100644
--- a/library/cpp/http/misc/httpcodes.h
+++ b/library/cpp/http/misc/httpcodes.h
@@ -5,7 +5,7 @@
enum HttpCodes {
HTTP_CONTINUE = 100,
HTTP_SWITCHING_PROTOCOLS = 101,
- HTTP_PROCESSING = 102,
+ HTTP_PROCESSING = 102,
HTTP_OK = 200,
HTTP_CREATED = 201,
@@ -14,9 +14,9 @@ enum HttpCodes {
HTTP_NO_CONTENT = 204,
HTTP_RESET_CONTENT = 205,
HTTP_PARTIAL_CONTENT = 206,
- HTTP_MULTI_STATUS = 207,
- HTTP_ALREADY_REPORTED = 208,
- HTTP_IM_USED = 226,
+ HTTP_MULTI_STATUS = 207,
+ HTTP_ALREADY_REPORTED = 208,
+ HTTP_IM_USED = 226,
HTTP_MULTIPLE_CHOICES = 300,
HTTP_MOVED_PERMANENTLY = 301,
@@ -25,7 +25,7 @@ enum HttpCodes {
HTTP_NOT_MODIFIED = 304,
HTTP_USE_PROXY = 305,
HTTP_TEMPORARY_REDIRECT = 307,
- HTTP_PERMANENT_REDIRECT = 308,
+ HTTP_PERMANENT_REDIRECT = 308,
HTTP_BAD_REQUEST = 400,
HTTP_UNAUTHORIZED = 401,
@@ -45,18 +45,18 @@ enum HttpCodes {
HTTP_UNSUPPORTED_MEDIA_TYPE = 415,
HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416,
HTTP_EXPECTATION_FAILED = 417,
- HTTP_I_AM_A_TEAPOT = 418,
- HTTP_AUTHENTICATION_TIMEOUT = 419,
- HTTP_MISDIRECTED_REQUEST = 421,
+ HTTP_I_AM_A_TEAPOT = 418,
+ HTTP_AUTHENTICATION_TIMEOUT = 419,
+ HTTP_MISDIRECTED_REQUEST = 421,
HTTP_UNPROCESSABLE_ENTITY = 422,
- HTTP_LOCKED = 423,
- HTTP_FAILED_DEPENDENCY = 424,
+ HTTP_LOCKED = 423,
+ HTTP_FAILED_DEPENDENCY = 424,
HTTP_UNORDERED_COLLECTION = 425,
- HTTP_UPGRADE_REQUIRED = 426,
- HTTP_PRECONDITION_REQUIRED = 428,
+ HTTP_UPGRADE_REQUIRED = 426,
+ HTTP_PRECONDITION_REQUIRED = 428,
HTTP_TOO_MANY_REQUESTS = 429,
HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431,
- HTTP_UNAVAILABLE_FOR_LEGAL_REASONS = 451,
+ HTTP_UNAVAILABLE_FOR_LEGAL_REASONS = 451,
HTTP_INTERNAL_SERVER_ERROR = 500,
HTTP_NOT_IMPLEMENTED = 501,
@@ -64,12 +64,12 @@ enum HttpCodes {
HTTP_SERVICE_UNAVAILABLE = 503,
HTTP_GATEWAY_TIME_OUT = 504,
HTTP_HTTP_VERSION_NOT_SUPPORTED = 505,
- HTTP_VARIANT_ALSO_NEGOTIATES = 506,
- HTTP_INSUFFICIENT_STORAGE = 507,
- HTTP_LOOP_DETECTED = 508,
+ HTTP_VARIANT_ALSO_NEGOTIATES = 506,
+ HTTP_INSUFFICIENT_STORAGE = 507,
+ HTTP_LOOP_DETECTED = 508,
HTTP_BANDWIDTH_LIMIT_EXCEEDED = 509,
- HTTP_NOT_EXTENDED = 510,
- HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511,
+ HTTP_NOT_EXTENDED = 510,
+ HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511,
HTTP_UNASSIGNED_512 = 512,
HTTP_CODE_MAX