aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/cpp/http
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/http')
-rw-r--r--library/cpp/http/fetch/ut/ya.make8
-rw-r--r--library/cpp/http/fetch/ya.make34
-rw-r--r--library/cpp/http/io/fuzz/ya.make13
-rw-r--r--library/cpp/http/io/list_codings/ya.make11
-rw-r--r--library/cpp/http/io/ut/ya.make15
-rw-r--r--library/cpp/http/io/ya.make23
-rw-r--r--library/cpp/http/misc/ut/ya.make9
-rw-r--r--library/cpp/http/misc/ya.make20
-rw-r--r--library/cpp/http/push_parser/ya.make14
-rw-r--r--library/cpp/http/server/ut/ya.make10
-rw-r--r--library/cpp/http/server/ya.make22
-rw-r--r--library/cpp/http/simple/ut/https_server/ya.make5
-rw-r--r--library/cpp/http/simple/ut/ya.make21
-rw-r--r--library/cpp/http/simple/ya.make20
14 files changed, 225 insertions, 0 deletions
diff --git a/library/cpp/http/fetch/ut/ya.make b/library/cpp/http/fetch/ut/ya.make
new file mode 100644
index 0000000000..df14c2a09f
--- /dev/null
+++ b/library/cpp/http/fetch/ut/ya.make
@@ -0,0 +1,8 @@
+UNITTEST_FOR(library/cpp/http/fetch)
+
+SRCS(
+ httpfsm_ut.cpp
+ httpparser_ut.cpp
+)
+
+END()
diff --git a/library/cpp/http/fetch/ya.make b/library/cpp/http/fetch/ya.make
new file mode 100644
index 0000000000..78125f42cf
--- /dev/null
+++ b/library/cpp/http/fetch/ya.make
@@ -0,0 +1,34 @@
+LIBRARY()
+
+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
+)
+
+SRCS(
+ http_digest.cpp
+ http_socket.cpp
+ httpheader.cpp
+ httpload.cpp
+ exthttpcodes.cpp
+ httpfsm.rl6
+ httpagent.h
+ httpfetcher.h
+ httpheader.h
+ httpparser.h
+ httpzreader.h
+ sockhandler.h
+)
+
+GENERATE_ENUM_SERIALIZATION(httpheader.h)
+
+SET(RAGEL6_FLAGS -CG1)
+
+END()
+
+RECURSE_FOR_TESTS(ut)
diff --git a/library/cpp/http/io/fuzz/ya.make b/library/cpp/http/io/fuzz/ya.make
new file mode 100644
index 0000000000..8cb1fe288d
--- /dev/null
+++ b/library/cpp/http/io/fuzz/ya.make
@@ -0,0 +1,13 @@
+FUZZ()
+
+PEERDIR(
+ library/cpp/http/io
+)
+
+SIZE(MEDIUM)
+
+SRCS(
+ main.cpp
+)
+
+END()
diff --git a/library/cpp/http/io/list_codings/ya.make b/library/cpp/http/io/list_codings/ya.make
new file mode 100644
index 0000000000..afc5c45444
--- /dev/null
+++ b/library/cpp/http/io/list_codings/ya.make
@@ -0,0 +1,11 @@
+PROGRAM()
+
+PEERDIR(
+ library/cpp/http/io
+)
+
+SRCS(
+ main.cpp
+)
+
+END()
diff --git a/library/cpp/http/io/ut/ya.make b/library/cpp/http/io/ut/ya.make
new file mode 100644
index 0000000000..75beaaafb9
--- /dev/null
+++ b/library/cpp/http/io/ut/ya.make
@@ -0,0 +1,15 @@
+UNITTEST_FOR(library/cpp/http/io)
+
+PEERDIR(
+ library/cpp/http/server
+)
+
+SRCS(
+ chunk_ut.cpp
+ compression_ut.cpp
+ headers_ut.cpp
+ stream_ut.cpp
+ stream_ut_medium.cpp
+)
+
+END()
diff --git a/library/cpp/http/io/ya.make b/library/cpp/http/io/ya.make
new file mode 100644
index 0000000000..0390aecf55
--- /dev/null
+++ b/library/cpp/http/io/ya.make
@@ -0,0 +1,23 @@
+LIBRARY()
+
+PEERDIR(
+ library/cpp/blockcodecs
+ library/cpp/streams/brotli
+ library/cpp/streams/bzip2
+ library/cpp/streams/lzma
+)
+
+SRCS(
+ chunk.cpp
+ compression.cpp
+ headers.cpp
+ stream.cpp
+)
+
+END()
+
+RECURSE(
+ fuzz
+ list_codings
+ ut
+)
diff --git a/library/cpp/http/misc/ut/ya.make b/library/cpp/http/misc/ut/ya.make
new file mode 100644
index 0000000000..604f1c4e74
--- /dev/null
+++ b/library/cpp/http/misc/ut/ya.make
@@ -0,0 +1,9 @@
+UNITTEST_FOR(library/cpp/http/misc)
+
+SRCS(
+ httpdate_ut.cpp
+ httpreqdata_ut.cpp
+ parsed_request_ut.cpp
+)
+
+END()
diff --git a/library/cpp/http/misc/ya.make b/library/cpp/http/misc/ya.make
new file mode 100644
index 0000000000..935e1f0fcc
--- /dev/null
+++ b/library/cpp/http/misc/ya.make
@@ -0,0 +1,20 @@
+LIBRARY()
+
+GENERATE_ENUM_SERIALIZATION(httpcodes.h)
+
+SRCS(
+ httpcodes.cpp
+ httpdate.cpp
+ httpreqdata.cpp
+ parsed_request.cpp
+)
+
+PEERDIR(
+ library/cpp/case_insensitive_string
+ library/cpp/cgiparam
+ library/cpp/digest/lower_case
+)
+
+END()
+
+RECURSE_FOR_TESTS(ut)
diff --git a/library/cpp/http/push_parser/ya.make b/library/cpp/http/push_parser/ya.make
new file mode 100644
index 0000000000..18289d2e9d
--- /dev/null
+++ b/library/cpp/http/push_parser/ya.make
@@ -0,0 +1,14 @@
+LIBRARY()
+
+SRCS(
+ http_parser.cpp
+)
+
+PEERDIR(
+ library/cpp/http/io
+ library/cpp/blockcodecs
+)
+
+END()
+
+RECURSE_FOR_TESTS(ut)
diff --git a/library/cpp/http/server/ut/ya.make b/library/cpp/http/server/ut/ya.make
new file mode 100644
index 0000000000..78911fc4f1
--- /dev/null
+++ b/library/cpp/http/server/ut/ya.make
@@ -0,0 +1,10 @@
+UNITTEST_FOR(library/cpp/http/server)
+
+SIZE(MEDIUM)
+
+SRCS(
+ http_ut.cpp
+ response_ut.cpp
+)
+
+END()
diff --git a/library/cpp/http/server/ya.make b/library/cpp/http/server/ya.make
new file mode 100644
index 0000000000..a37783e7ed
--- /dev/null
+++ b/library/cpp/http/server/ya.make
@@ -0,0 +1,22 @@
+LIBRARY()
+
+SRCS(
+ conn.cpp
+ http.cpp
+ http_ex.cpp
+ options.cpp
+ response.cpp
+)
+
+PEERDIR(
+ library/cpp/http/misc
+ library/cpp/http/io
+ library/cpp/threading/equeue
+ library/cpp/deprecated/atomic
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ ut
+)
diff --git a/library/cpp/http/simple/ut/https_server/ya.make b/library/cpp/http/simple/ut/https_server/ya.make
new file mode 100644
index 0000000000..6a0765382d
--- /dev/null
+++ b/library/cpp/http/simple/ut/https_server/ya.make
@@ -0,0 +1,5 @@
+GO_PROGRAM()
+
+SRCS(main.go)
+
+END()
diff --git a/library/cpp/http/simple/ut/ya.make b/library/cpp/http/simple/ut/ya.make
new file mode 100644
index 0000000000..3f77967ea6
--- /dev/null
+++ b/library/cpp/http/simple/ut/ya.make
@@ -0,0 +1,21 @@
+UNITTEST_FOR(library/cpp/http/simple)
+
+PEERDIR(
+ library/cpp/http/misc
+ library/cpp/testing/mock_server
+)
+
+SRCS(
+ http_ut.cpp
+ https_ut.cpp
+)
+
+DEPENDS(library/cpp/http/simple/ut/https_server)
+
+DATA(arcadia/library/cpp/http/simple/ut/https_server)
+
+END()
+
+RECURSE(
+ https_server
+)
diff --git a/library/cpp/http/simple/ya.make b/library/cpp/http/simple/ya.make
new file mode 100644
index 0000000000..3ef55c852c
--- /dev/null
+++ b/library/cpp/http/simple/ya.make
@@ -0,0 +1,20 @@
+LIBRARY()
+
+PEERDIR(
+ library/cpp/http/io
+ library/cpp/openssl/io
+ library/cpp/string_utils/url
+ library/cpp/uri
+)
+
+SRCS(
+ http_client.cpp
+)
+
+END()
+
+IF (NOT OS_WINDOWS)
+ RECURSE_FOR_TESTS(
+ ut
+ )
+ENDIF()