diff options
author | lonelly <lonelly@yandex-team.ru> | 2022-02-10 16:49:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:49 +0300 |
commit | e01af096d5cd7baca583319f1473a2a2c993ec86 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/http/fetch/httpfsm.h | |
parent | f1a86949d52e1185ed4f05de191b50386abc68f4 (diff) | |
download | ydb-e01af096d5cd7baca583319f1473a2a2c993ec86.tar.gz |
Restoring authorship annotation for <lonelly@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/http/fetch/httpfsm.h')
-rw-r--r-- | library/cpp/http/fetch/httpfsm.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/http/fetch/httpfsm.h b/library/cpp/http/fetch/httpfsm.h index 18c00893a6c..c4abdcd0d23 100644 --- a/library/cpp/http/fetch/httpfsm.h +++ b/library/cpp/http/fetch/httpfsm.h @@ -24,12 +24,12 @@ struct THttpHeaderParser { } int Init(THttpHeader* h) { - int ret = Init((THttpBaseHeader*)(h)); + int ret = Init((THttpBaseHeader*)(h)); hd = h; hd->Init(); hreflangpos = hd->hreflangs; hreflangspace = HREFLANG_MAX; - return ret; + return ret; } int Init(THttpAuthHeader* h) { @@ -38,11 +38,11 @@ struct THttpHeaderParser { return ret; } int Init(THttpRequestHeader* h) { - int ret = Init((THttpBaseHeader*)(h)); - request_hd = h; - request_hd->Init(); - return ret; - } + int ret = Init((THttpBaseHeader*)(h)); + request_hd = h; + request_hd->Init(); + return ret; + } THttpHeader* hd; long I; @@ -67,16 +67,16 @@ private: THttpBaseHeader* base_hd; int cs; -private: +private: int Init(THttpBaseHeader* header) { - base_hd = header; + base_hd = header; auth_hd = nullptr; request_hd = nullptr; hd = nullptr; - init(); - return 0; - } - + init(); + return 0; + } + int execute(unsigned char* inBuf, int len); void init(); }; |