aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http
diff options
context:
space:
mode:
authorcerevra <cerevra@yandex-team.ru>2022-02-10 16:45:59 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:59 +0300
commit4f292c7e2fd0a41da93fda51b2d440c979a330b7 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/http
parentbf41dd01f6c920583e9faae7cd55ed25e547e052 (diff)
downloadydb-4f292c7e2fd0a41da93fda51b2d440c979a330b7.tar.gz
Restoring authorship annotation for <cerevra@yandex-team.ru>. Commit 2 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 a24352210d..6b525052cd 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 76ed887dd2..1eaa02b7f2 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 c32a38570e..3b1872d70b 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 019dd6492c..7fc251afd2 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 3485539a68..eab0328b18 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 66518bc8c5..b018e80101 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 3bec3e0709..b2810bbd41 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 44b7b2790a..e22e4b809e 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 caf3fb8cc1..769828e4ae 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 7e44099e23..7486986b36 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 8c1b086bb7..7737127463 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 be4210f27d..8fa1f62ae6 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 1553015281..8ded9c7e32 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 2226bdbb7e..8b3ccb1969 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 883dd0d786..1d23ef8fdc 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 20f9df4a26..9818d02bdf 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 02ded23816..e5c5fed6dc 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 89942c4748..6689be684f 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 0f46920e0c..78ca4fc814 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 9ad15ad7ac..1ea35df675 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 1c51e783fb..235a23dcd7 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 8f79421039..84f6949db3 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 90dd4679ad..dcfbd79885 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 fe3eaea5ba..16e59c4d78 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 fcfa5bdbbf..f4bdd35662 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 5e52839870..fceb3cf79c 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 3ac4788bc2..3aa5329af4 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 015cac718b..b292d38f27 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 e6d082881f..1ef43ea4fd 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 0ae08b9b06..a75cb85605 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 d81231448a..bcb4d4c0b8 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 d5db661500..bae6f33306 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 158e9167e8..fa2d1edef6 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()