aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/fetch/httpfsm.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/http/fetch/httpfsm.h
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpfsm.h')
-rw-r--r--library/cpp/http/fetch/httpfsm.h58
1 files changed, 29 insertions, 29 deletions
diff --git a/library/cpp/http/fetch/httpfsm.h b/library/cpp/http/fetch/httpfsm.h
index c4abdcd0d2..af490adc5a 100644
--- a/library/cpp/http/fetch/httpfsm.h
+++ b/library/cpp/http/fetch/httpfsm.h
@@ -1,7 +1,7 @@
#pragma once
-#include "httpheader.h"
-
+#include "httpheader.h"
+
#include <util/system/maxlen.h>
#include <util/datetime/parser.h>
@@ -15,7 +15,7 @@ struct THttpHeaderParser {
static constexpr int NeedMore = 1;
static constexpr int Accepted = 2;
- int Execute(const void* inBuf, size_t len) {
+ int Execute(const void* inBuf, size_t len) {
return execute((unsigned char*)inBuf, (int)len);
}
@@ -23,7 +23,7 @@ struct THttpHeaderParser {
return Execute(str.data(), str.size());
}
- int Init(THttpHeader* h) {
+ int Init(THttpHeader* h) {
int ret = Init((THttpBaseHeader*)(h));
hd = h;
hd->Init();
@@ -32,43 +32,43 @@ struct THttpHeaderParser {
return ret;
}
- int Init(THttpAuthHeader* h) {
+ int Init(THttpAuthHeader* h) {
int ret = Init((THttpHeader*)(h));
auth_hd = h;
return ret;
}
- int Init(THttpRequestHeader* h) {
+ int Init(THttpRequestHeader* h) {
int ret = Init((THttpBaseHeader*)(h));
request_hd = h;
request_hd->Init();
return ret;
}
- THttpHeader* hd;
- long I;
- int Dc;
+ THttpHeader* hd;
+ long I;
+ int Dc;
TDateTimeFieldsDeprecated DateTimeFields;
- char buf[FETCHER_URL_MAX];
- size_t buflen;
- char* lastchar;
+ char buf[FETCHER_URL_MAX];
+ size_t buflen;
+ char* lastchar;
- const unsigned char* langstart;
- size_t langlen;
+ const unsigned char* langstart;
+ size_t langlen;
- char* hreflangpos;
- size_t hreflangspace;
+ char* hreflangpos;
+ size_t hreflangspace;
bool AcceptingXRobots;
- THttpAuthHeader* auth_hd;
- THttpRequestHeader* request_hd;
+ THttpAuthHeader* auth_hd;
+ THttpRequestHeader* request_hd;
private:
- THttpBaseHeader* base_hd;
+ THttpBaseHeader* base_hd;
int cs;
-
+
private:
- int Init(THttpBaseHeader* header) {
+ int Init(THttpBaseHeader* header) {
base_hd = header;
auth_hd = nullptr;
request_hd = nullptr;
@@ -77,12 +77,12 @@ private:
return 0;
}
- int execute(unsigned char* inBuf, int len);
+ int execute(unsigned char* inBuf, int len);
void init();
};
struct THttpChunkParser {
- int Execute(const void* inBuf, int len) {
+ int Execute(const void* inBuf, int len) {
return execute((unsigned char*)inBuf, len);
}
@@ -91,14 +91,14 @@ struct THttpChunkParser {
return 0;
}
- int chunk_length;
- char* lastchar;
- long I;
- int Dc;
- i64 cnt64;
+ int chunk_length;
+ char* lastchar;
+ long I;
+ int Dc;
+ i64 cnt64;
private:
int cs;
- int execute(unsigned char* inBuf, int len);
+ int execute(unsigned char* inBuf, int len);
void init();
};