diff options
author | uzhas <uzhas@ydb.tech> | 2022-09-20 19:07:01 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2022-09-20 19:07:01 +0300 |
commit | 196b6fb2030654f8da700901c939461dfe077961 (patch) | |
tree | 45f86bf994afbf82db3400a0e172f67b67ff8d6b | |
parent | 6ff217f0b93fe67b3197df3912e64afa2eb0affa (diff) | |
download | ydb-196b6fb2030654f8da700901c939461dfe077961.tar.gz |
fq public HTTP API lib, cleanup code, fix sensors
-rw-r--r-- | ydb/core/public_http/http_req.cpp | 12 | ||||
-rw-r--r-- | ydb/core/public_http/http_req.h | 1 |
2 files changed, 2 insertions, 11 deletions
diff --git a/ydb/core/public_http/http_req.cpp b/ydb/core/public_http/http_req.cpp index 68fec8e328c..0e01644f217 100644 --- a/ydb/core/public_http/http_req.cpp +++ b/ydb/core/public_http/http_req.cpp @@ -1,18 +1,10 @@ #include "http_req.h" #include <library/cpp/actors/http/http_proxy.h> -//#include <library/cpp/http/misc/parsed_request.h> -//#include <library/cpp/http/server/response.h> - -//#include <ydb/core/grpc_caching/cached_grpc_request_actor.h> -//#include <ydb/core/grpc_services/local_rpc/local_rpc.h> #include <ydb/core/http_proxy/http_req.h> -//#include <library/cpp/uri/uri.h> - #include <util/generic/guid.h> #include <util/string/ascii.h> -//#include <util/string/cast.h> namespace NKikimr::NPublicHttp { constexpr TStringBuf AUTHORIZATION_HEADER = "authorization"; @@ -156,8 +148,8 @@ namespace NKikimr::NPublicHttp { group = group->GetSubgroup("project", Project); } group = group->GetSubgroup("path_pattern", PathPattern)->GetSubgroup("method", TString(Request->Method)); - group->GetSubgroup("code", TString(status))->GetNamedCounter("name", "count", true)->Inc(); - group->GetSubgroup("code", HttpCodeFamily(status))->GetNamedCounter("name", "count", true)->Inc(); + group->GetSubgroup("code", TString(status))->GetCounter("count", true)->Inc(); + group->GetSubgroup("code", HttpCodeFamily(status))->GetCounter("count", true)->Inc(); } void THttpRequestContext::ParseHeaders(TStringBuf str) { diff --git a/ydb/core/public_http/http_req.h b/ydb/core/public_http/http_req.h index e7575a0f3de..84ce2789e5d 100644 --- a/ydb/core/public_http/http_req.h +++ b/ydb/core/public_http/http_req.h @@ -3,7 +3,6 @@ #include <ydb/public/api/protos/ydb_status_codes.pb.h> #include <library/cpp/actors/core/actorsystem.h> #include <library/cpp/actors/http/http.h> -//#include <library/cpp/http/server/http.h> namespace NKikimr::NPublicHttp { |