aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http
diff options
context:
space:
mode:
authorcerevra <cerevra@yandex-team.ru>2022-02-10 16:45:58 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:58 +0300
commitbf41dd01f6c920583e9faae7cd55ed25e547e052 (patch)
treeec7c8c285ffa648a5c5efeff453787a15ab811ac /library/cpp/http
parente2c3e3004f7cd68441cefcfa4aaccd3d8051c846 (diff)
downloadydb-bf41dd01f6c920583e9faae7cd55ed25e547e052.tar.gz
Restoring authorship annotation for <cerevra@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/http')
-rw-r--r--library/cpp/http/fetch/exthttpcodes.h2
-rw-r--r--library/cpp/http/fetch/http_digest.cpp2
-rw-r--r--library/cpp/http/fetch/http_digest.h2
-rw-r--r--library/cpp/http/fetch/httpfetcher.h2
-rw-r--r--library/cpp/http/fetch/httpfsm.rl612
-rw-r--r--library/cpp/http/fetch/httpfsm_ut.cpp2
-rw-r--r--library/cpp/http/fetch/httpheader.h2
-rw-r--r--library/cpp/http/fetch/httpload.h4
-rw-r--r--library/cpp/http/fetch/httpparser.h4
-rw-r--r--library/cpp/http/fetch/ut/ya.make2
-rw-r--r--library/cpp/http/fetch/ya.make12
-rw-r--r--library/cpp/http/io/compression.cpp12
-rw-r--r--library/cpp/http/io/fuzz/main.cpp2
-rw-r--r--library/cpp/http/io/fuzz/ya.make2
-rw-r--r--library/cpp/http/io/headers_ut.cpp2
-rw-r--r--library/cpp/http/io/list_codings/main.cpp2
-rw-r--r--library/cpp/http/io/list_codings/ya.make2
-rw-r--r--library/cpp/http/io/stream.cpp14
-rw-r--r--library/cpp/http/io/stream.h6
-rw-r--r--library/cpp/http/io/stream_ut.cpp2
-rw-r--r--library/cpp/http/io/ut/medium/ya.make2
-rw-r--r--library/cpp/http/io/ut/ya.make4
-rw-r--r--library/cpp/http/io/ya.make8
-rw-r--r--library/cpp/http/misc/httpreqdata.h2
-rw-r--r--library/cpp/http/misc/ut/ya.make2
-rw-r--r--library/cpp/http/misc/ya.make2
-rw-r--r--library/cpp/http/server/conn.h2
-rw-r--r--library/cpp/http/server/http.h2
-rw-r--r--library/cpp/http/server/http_ex.h2
-rw-r--r--library/cpp/http/server/response.h4
-rw-r--r--library/cpp/http/server/ut/ya.make2
-rw-r--r--library/cpp/http/server/ya.make4
-rw-r--r--library/cpp/http/ya.make48
33 files changed, 87 insertions, 87 deletions
diff --git a/library/cpp/http/fetch/exthttpcodes.h b/library/cpp/http/fetch/exthttpcodes.h
index 6b525052cd..a24352210d 100644
--- a/library/cpp/http/fetch/exthttpcodes.h
+++ b/library/cpp/http/fetch/exthttpcodes.h
@@ -1,7 +1,7 @@
#pragma once
#include <util/system/defaults.h>
-#include <library/cpp/http/misc/httpcodes.h>
+#include <library/cpp/http/misc/httpcodes.h>
enum ExtHttpCodes {
// Custom
diff --git a/library/cpp/http/fetch/http_digest.cpp b/library/cpp/http/fetch/http_digest.cpp
index 1eaa02b7f2..76ed887dd2 100644
--- a/library/cpp/http/fetch/http_digest.cpp
+++ b/library/cpp/http/fetch/http_digest.cpp
@@ -1,6 +1,6 @@
#include "http_digest.h"
-#include <library/cpp/digest/md5/md5.h>
+#include <library/cpp/digest/md5/md5.h>
#include <util/stream/output.h>
#include <util/stream/str.h>
diff --git a/library/cpp/http/fetch/http_digest.h b/library/cpp/http/fetch/http_digest.h
index 3b1872d70b..c32a38570e 100644
--- a/library/cpp/http/fetch/http_digest.h
+++ b/library/cpp/http/fetch/http_digest.h
@@ -3,7 +3,7 @@
#include "httpheader.h"
#include <util/system/compat.h>
-#include <library/cpp/http/misc/httpcodes.h>
+#include <library/cpp/http/misc/httpcodes.h>
class httpDigestHandler {
protected:
diff --git a/library/cpp/http/fetch/httpfetcher.h b/library/cpp/http/fetch/httpfetcher.h
index 7fc251afd2..019dd6492c 100644
--- a/library/cpp/http/fetch/httpfetcher.h
+++ b/library/cpp/http/fetch/httpfetcher.h
@@ -4,7 +4,7 @@
#include <io.h>
#endif
-#include <library/cpp/http/misc/httpdate.h>
+#include <library/cpp/http/misc/httpdate.h>
#include "httpagent.h"
#include "httpparser.h"
diff --git a/library/cpp/http/fetch/httpfsm.rl6 b/library/cpp/http/fetch/httpfsm.rl6
index eab0328b18..3485539a68 100644
--- a/library/cpp/http/fetch/httpfsm.rl6
+++ b/library/cpp/http/fetch/httpfsm.rl6
@@ -1,15 +1,15 @@
#include <stdio.h>
#include <time.h>
-#include <library/cpp/charset/doccodes.h>
-#include <library/cpp/charset/codepage.h>
-#include <library/cpp/http/misc/httpcodes.h>
+#include <library/cpp/charset/doccodes.h>
+#include <library/cpp/charset/codepage.h>
+#include <library/cpp/http/misc/httpcodes.h>
#include <util/datetime/base.h>
#include <util/generic/ylimits.h>
#include <algorithm> // max
-#include <library/cpp/http/fetch/httpheader.h>
-#include <library/cpp/http/fetch/httpfsm.h>
+#include <library/cpp/http/fetch/httpheader.h>
+#include <library/cpp/http/fetch/httpfsm.h>
#ifdef _MSC_VER
#pragma warning(disable: 4702) // unreachable code
@@ -39,7 +39,7 @@ static inline void setguarded(x &val, long cnt) {
%%{
machine http_header_parser;
-include HttpDateTimeParser "../../../../util/datetime/parser.rl6";
+include HttpDateTimeParser "../../../../util/datetime/parser.rl6";
alphtype unsigned char;
diff --git a/library/cpp/http/fetch/httpfsm_ut.cpp b/library/cpp/http/fetch/httpfsm_ut.cpp
index b018e80101..66518bc8c5 100644
--- a/library/cpp/http/fetch/httpfsm_ut.cpp
+++ b/library/cpp/http/fetch/httpfsm_ut.cpp
@@ -3,7 +3,7 @@
#include "library-htfetch_ut_hreflang_out.h"
#include <util/generic/ptr.h>
-#include <library/cpp/charset/doccodes.h>
+#include <library/cpp/charset/doccodes.h>
#include <library/cpp/testing/unittest/registar.h>
class THttpHeaderParserTestSuite: public TTestBase {
diff --git a/library/cpp/http/fetch/httpheader.h b/library/cpp/http/fetch/httpheader.h
index b2810bbd41..3bec3e0709 100644
--- a/library/cpp/http/fetch/httpheader.h
+++ b/library/cpp/http/fetch/httpheader.h
@@ -2,7 +2,7 @@
#include "exthttpcodes.h"
-#include <library/cpp/mime/types/mime.h>
+#include <library/cpp/mime/types/mime.h>
#include <util/system/defaults.h>
#include <util/system/compat.h>
diff --git a/library/cpp/http/fetch/httpload.h b/library/cpp/http/fetch/httpload.h
index e22e4b809e..44b7b2790a 100644
--- a/library/cpp/http/fetch/httpload.h
+++ b/library/cpp/http/fetch/httpload.h
@@ -7,8 +7,8 @@
#include <util/system/compat.h>
#include <util/string/vector.h>
#include <util/network/ip.h>
-#include <library/cpp/uri/http_url.h>
-#include <library/cpp/http/misc/httpcodes.h>
+#include <library/cpp/uri/http_url.h>
+#include <library/cpp/http/misc/httpcodes.h>
/********************************************************/
// Section 1: socket handlers
diff --git a/library/cpp/http/fetch/httpparser.h b/library/cpp/http/fetch/httpparser.h
index 769828e4ae..caf3fb8cc1 100644
--- a/library/cpp/http/fetch/httpparser.h
+++ b/library/cpp/http/fetch/httpparser.h
@@ -3,9 +3,9 @@
#include "httpfsm.h"
#include "httpheader.h"
-#include <library/cpp/mime/types/mime.h>
+#include <library/cpp/mime/types/mime.h>
#include <util/system/yassert.h>
-#include <library/cpp/http/misc/httpcodes.h>
+#include <library/cpp/http/misc/httpcodes.h>
template <size_t headermax = 100 << 10, size_t bodymax = 1 << 20>
struct TFakeCheck {
diff --git a/library/cpp/http/fetch/ut/ya.make b/library/cpp/http/fetch/ut/ya.make
index 7486986b36..7e44099e23 100644
--- a/library/cpp/http/fetch/ut/ya.make
+++ b/library/cpp/http/fetch/ut/ya.make
@@ -1,4 +1,4 @@
-UNITTEST_FOR(library/cpp/http/fetch)
+UNITTEST_FOR(library/cpp/http/fetch)
OWNER(
g:zora
diff --git a/library/cpp/http/fetch/ya.make b/library/cpp/http/fetch/ya.make
index 7737127463..8c1b086bb7 100644
--- a/library/cpp/http/fetch/ya.make
+++ b/library/cpp/http/fetch/ya.make
@@ -6,12 +6,12 @@ OWNER(
PEERDIR(
contrib/libs/zlib
- library/cpp/charset
- library/cpp/digest/md5
- library/cpp/http/misc
- library/cpp/logger
- library/cpp/mime/types
- library/cpp/uri
+ library/cpp/charset
+ library/cpp/digest/md5
+ library/cpp/http/misc
+ library/cpp/logger
+ library/cpp/mime/types
+ library/cpp/uri
)
SRCS(
diff --git a/library/cpp/http/io/compression.cpp b/library/cpp/http/io/compression.cpp
index 8fa1f62ae6..be4210f27d 100644
--- a/library/cpp/http/io/compression.cpp
+++ b/library/cpp/http/io/compression.cpp
@@ -1,15 +1,15 @@
#include "compression.h"
#if defined(ENABLE_GPL)
-#include <library/cpp/streams/lz/lz.h>
+#include <library/cpp/streams/lz/lz.h>
#endif
-#include <library/cpp/streams/brotli/brotli.h>
-#include <library/cpp/streams/lzma/lzma.h>
-#include <library/cpp/streams/bzip2/bzip2.h>
+#include <library/cpp/streams/brotli/brotli.h>
+#include <library/cpp/streams/lzma/lzma.h>
+#include <library/cpp/streams/bzip2/bzip2.h>
-#include <library/cpp/blockcodecs/stream.h>
-#include <library/cpp/blockcodecs/codecs.h>
+#include <library/cpp/blockcodecs/stream.h>
+#include <library/cpp/blockcodecs/codecs.h>
#include <util/stream/zlib.h>
diff --git a/library/cpp/http/io/fuzz/main.cpp b/library/cpp/http/io/fuzz/main.cpp
index 8ded9c7e32..1553015281 100644
--- a/library/cpp/http/io/fuzz/main.cpp
+++ b/library/cpp/http/io/fuzz/main.cpp
@@ -1,4 +1,4 @@
-#include <library/cpp/http/io/stream.h>
+#include <library/cpp/http/io/stream.h>
#include <util/generic/vector.h>
#include <util/stream/mem.h>
diff --git a/library/cpp/http/io/fuzz/ya.make b/library/cpp/http/io/fuzz/ya.make
index 8b3ccb1969..2226bdbb7e 100644
--- a/library/cpp/http/io/fuzz/ya.make
+++ b/library/cpp/http/io/fuzz/ya.make
@@ -6,7 +6,7 @@ OWNER(
)
PEERDIR(
- library/cpp/http/io
+ library/cpp/http/io
)
SIZE(MEDIUM)
diff --git a/library/cpp/http/io/headers_ut.cpp b/library/cpp/http/io/headers_ut.cpp
index 1d23ef8fdc..883dd0d786 100644
--- a/library/cpp/http/io/headers_ut.cpp
+++ b/library/cpp/http/io/headers_ut.cpp
@@ -3,7 +3,7 @@
#include <util/generic/strbuf.h>
#include <utility>
-#include <library/cpp/http/io/headers.h>
+#include <library/cpp/http/io/headers.h>
#include <library/cpp/testing/unittest/registar.h>
namespace {
diff --git a/library/cpp/http/io/list_codings/main.cpp b/library/cpp/http/io/list_codings/main.cpp
index 9818d02bdf..20f9df4a26 100644
--- a/library/cpp/http/io/list_codings/main.cpp
+++ b/library/cpp/http/io/list_codings/main.cpp
@@ -1,4 +1,4 @@
-#include <library/cpp/http/io/stream.h>
+#include <library/cpp/http/io/stream.h>
#include <util/stream/output.h>
int main() {
diff --git a/library/cpp/http/io/list_codings/ya.make b/library/cpp/http/io/list_codings/ya.make
index e5c5fed6dc..02ded23816 100644
--- a/library/cpp/http/io/list_codings/ya.make
+++ b/library/cpp/http/io/list_codings/ya.make
@@ -3,7 +3,7 @@ PROGRAM()
OWNER(pg)
PEERDIR(
- library/cpp/http/io
+ library/cpp/http/io
)
SRCS(
diff --git a/library/cpp/http/io/stream.cpp b/library/cpp/http/io/stream.cpp
index 6689be684f..89942c4748 100644
--- a/library/cpp/http/io/stream.cpp
+++ b/library/cpp/http/io/stream.cpp
@@ -139,7 +139,7 @@ public:
, Buffered_(Slave_, SuggestBufferSize())
, ChunkedInput_(nullptr)
, Input_(nullptr)
- , FirstLine_(ReadFirstLine(Buffered_))
+ , FirstLine_(ReadFirstLine(Buffered_))
, Headers_(&Buffered_)
, KeepAlive_(false)
, HasContentLength_(false)
@@ -151,12 +151,12 @@ public:
Y_ASSERT(Input_);
}
- static TString ReadFirstLine(TBufferedInput& in) {
- TString s;
- Y_ENSURE_EX(in.ReadLine(s), THttpReadException() << "Failed to get first line");
- return s;
- }
-
+ static TString ReadFirstLine(TBufferedInput& in) {
+ TString s;
+ Y_ENSURE_EX(in.ReadLine(s), THttpReadException() << "Failed to get first line");
+ return s;
+ }
+
inline ~TImpl() {
}
diff --git a/library/cpp/http/io/stream.h b/library/cpp/http/io/stream.h
index 78ca4fc814..0f46920e0c 100644
--- a/library/cpp/http/io/stream.h
+++ b/library/cpp/http/io/stream.h
@@ -18,9 +18,9 @@ struct THttpException: public yexception {
struct THttpParseException: public THttpException {
};
-struct THttpReadException: public THttpException {
-};
-
+struct THttpReadException: public THttpException {
+};
+
/// Чтение ответа HTTP-сервера.
class THttpInput: public IInputStream {
public:
diff --git a/library/cpp/http/io/stream_ut.cpp b/library/cpp/http/io/stream_ut.cpp
index 1ea35df675..9ad15ad7ac 100644
--- a/library/cpp/http/io/stream_ut.cpp
+++ b/library/cpp/http/io/stream_ut.cpp
@@ -1,7 +1,7 @@
#include "stream.h"
#include "chunk.h"
-#include <library/cpp/http/server/http_ex.h>
+#include <library/cpp/http/server/http_ex.h>
#include <library/cpp/testing/unittest/registar.h>
#include <library/cpp/testing/unittest/tests_data.h>
diff --git a/library/cpp/http/io/ut/medium/ya.make b/library/cpp/http/io/ut/medium/ya.make
index 235a23dcd7..1c51e783fb 100644
--- a/library/cpp/http/io/ut/medium/ya.make
+++ b/library/cpp/http/io/ut/medium/ya.make
@@ -1,4 +1,4 @@
-UNITTEST_FOR(library/cpp/http/io)
+UNITTEST_FOR(library/cpp/http/io)
SIZE(MEDIUM)
diff --git a/library/cpp/http/io/ut/ya.make b/library/cpp/http/io/ut/ya.make
index 84f6949db3..8f79421039 100644
--- a/library/cpp/http/io/ut/ya.make
+++ b/library/cpp/http/io/ut/ya.make
@@ -1,9 +1,9 @@
-UNITTEST_FOR(library/cpp/http/io)
+UNITTEST_FOR(library/cpp/http/io)
OWNER(g:util)
PEERDIR(
- library/cpp/http/server
+ library/cpp/http/server
)
SRCS(
diff --git a/library/cpp/http/io/ya.make b/library/cpp/http/io/ya.make
index dcfbd79885..90dd4679ad 100644
--- a/library/cpp/http/io/ya.make
+++ b/library/cpp/http/io/ya.make
@@ -6,10 +6,10 @@ OWNER(
)
PEERDIR(
- library/cpp/blockcodecs
- library/cpp/streams/brotli
- library/cpp/streams/bzip2
- library/cpp/streams/lzma
+ library/cpp/blockcodecs
+ library/cpp/streams/brotli
+ library/cpp/streams/bzip2
+ library/cpp/streams/lzma
)
SRCS(
diff --git a/library/cpp/http/misc/httpreqdata.h b/library/cpp/http/misc/httpreqdata.h
index 16e59c4d78..fe3eaea5ba 100644
--- a/library/cpp/http/misc/httpreqdata.h
+++ b/library/cpp/http/misc/httpreqdata.h
@@ -1,6 +1,6 @@
#pragma once
-#include <library/cpp/digest/lower_case/hash_ops.h>
+#include <library/cpp/digest/lower_case/hash_ops.h>
#include <util/str_stl.h>
diff --git a/library/cpp/http/misc/ut/ya.make b/library/cpp/http/misc/ut/ya.make
index f4bdd35662..fcfa5bdbbf 100644
--- a/library/cpp/http/misc/ut/ya.make
+++ b/library/cpp/http/misc/ut/ya.make
@@ -1,4 +1,4 @@
-UNITTEST_FOR(library/cpp/http/misc)
+UNITTEST_FOR(library/cpp/http/misc)
OWNER(g:util)
diff --git a/library/cpp/http/misc/ya.make b/library/cpp/http/misc/ya.make
index fceb3cf79c..5e52839870 100644
--- a/library/cpp/http/misc/ya.make
+++ b/library/cpp/http/misc/ya.make
@@ -16,7 +16,7 @@ SRCS(
PEERDIR(
library/cpp/cgiparam
- library/cpp/digest/lower_case
+ library/cpp/digest/lower_case
)
END()
diff --git a/library/cpp/http/server/conn.h b/library/cpp/http/server/conn.h
index 3aa5329af4..3ac4788bc2 100644
--- a/library/cpp/http/server/conn.h
+++ b/library/cpp/http/server/conn.h
@@ -1,6 +1,6 @@
#pragma once
-#include <library/cpp/http/io/stream.h>
+#include <library/cpp/http/io/stream.h>
#include <util/generic/ptr.h>
class TSocket;
diff --git a/library/cpp/http/server/http.h b/library/cpp/http/server/http.h
index b292d38f27..015cac718b 100644
--- a/library/cpp/http/server/http.h
+++ b/library/cpp/http/server/http.h
@@ -4,7 +4,7 @@
#include "options.h"
#include <util/thread/pool.h>
-#include <library/cpp/http/io/stream.h>
+#include <library/cpp/http/io/stream.h>
#include <util/memory/blob.h>
#include <util/generic/ptr.h>
#include <util/generic/vector.h>
diff --git a/library/cpp/http/server/http_ex.h b/library/cpp/http/server/http_ex.h
index 1ef43ea4fd..e6d082881f 100644
--- a/library/cpp/http/server/http_ex.h
+++ b/library/cpp/http/server/http_ex.h
@@ -2,7 +2,7 @@
#include "http.h"
-#include <library/cpp/http/misc/httpreqdata.h>
+#include <library/cpp/http/misc/httpreqdata.h>
class THttpClientRequestExtension: public TClientRequest {
public:
diff --git a/library/cpp/http/server/response.h b/library/cpp/http/server/response.h
index a75cb85605..0ae08b9b06 100644
--- a/library/cpp/http/server/response.h
+++ b/library/cpp/http/server/response.h
@@ -1,7 +1,7 @@
#pragma once
-#include <library/cpp/http/misc/httpcodes.h>
-#include <library/cpp/http/io/stream.h>
+#include <library/cpp/http/misc/httpcodes.h>
+#include <library/cpp/http/io/stream.h>
#include <util/generic/strbuf.h>
#include <util/string/cast.h>
diff --git a/library/cpp/http/server/ut/ya.make b/library/cpp/http/server/ut/ya.make
index bcb4d4c0b8..d81231448a 100644
--- a/library/cpp/http/server/ut/ya.make
+++ b/library/cpp/http/server/ut/ya.make
@@ -1,4 +1,4 @@
-UNITTEST_FOR(library/cpp/http/server)
+UNITTEST_FOR(library/cpp/http/server)
OWNER(pg)
diff --git a/library/cpp/http/server/ya.make b/library/cpp/http/server/ya.make
index bae6f33306..d5db661500 100644
--- a/library/cpp/http/server/ya.make
+++ b/library/cpp/http/server/ya.make
@@ -17,8 +17,8 @@ SRCS(
)
PEERDIR(
- library/cpp/http/misc
- library/cpp/http/io
+ library/cpp/http/misc
+ library/cpp/http/io
library/cpp/threading/equeue
)
diff --git a/library/cpp/http/ya.make b/library/cpp/http/ya.make
index fa2d1edef6..158e9167e8 100644
--- a/library/cpp/http/ya.make
+++ b/library/cpp/http/ya.make
@@ -1,25 +1,25 @@
-RECURSE(
- client
- client/cookies
- cookies
- coro
- examples
- fetch
+RECURSE(
+ client
+ client/cookies
+ cookies
+ coro
+ examples
+ fetch
fetch_gpl
- io
- io/fuzz
- io/list_codings
- misc
- multipart
- push_parser
- server
- simple
- static
-)
-
-IF (NOT OS_WINDOWS)
- RECURSE_FOR_TESTS(
- io/ut
- io/ut/medium
- )
-ENDIF()
+ io
+ io/fuzz
+ io/list_codings
+ misc
+ multipart
+ push_parser
+ server
+ simple
+ static
+)
+
+IF (NOT OS_WINDOWS)
+ RECURSE_FOR_TESTS(
+ io/ut
+ io/ut/medium
+ )
+ENDIF()