aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenserver/cache/structuredcache.cpp')
-rw-r--r--zenserver/cache/structuredcache.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/zenserver/cache/structuredcache.cpp b/zenserver/cache/structuredcache.cpp
index 10fbb3709..e78e583aa 100644
--- a/zenserver/cache/structuredcache.cpp
+++ b/zenserver/cache/structuredcache.cpp
@@ -112,9 +112,9 @@ HttpStructuredCacheService::HandleRequest(HttpServerRequest& Request)
{
std::string_view Key = Request.RelativeUri();
- if (Key == "$batch")
+ if (Key == "$rpc")
{
- return HandleBatchRequest(Request);
+ return HandleRpcRequest(Request);
}
if (std::all_of(begin(Key), end(Key), [](const char c) { return std::isalnum(c); }))
@@ -779,7 +779,7 @@ HttpStructuredCacheService::ValidateKeyUri(HttpServerRequest& Request, CacheRef&
}
void
-HttpStructuredCacheService::HandleBatchRequest(zen::HttpServerRequest& Request)
+HttpStructuredCacheService::HandleRpcRequest(zen::HttpServerRequest& Request)
{
switch (auto Verb = Request.RequestVerb())
{
@@ -800,11 +800,11 @@ HttpStructuredCacheService::HandleBatchRequest(zen::HttpServerRequest& Request)
const std::string_view Method = BatchRequest["Method"sv].AsString();
if (Method == "GetCacheRecords"sv)
{
- HandleBatchGetCacheRecords(AsyncRequest, BatchRequest);
+ HandleRpcGetCacheRecords(AsyncRequest, BatchRequest);
}
else if (Method == "GetCachePayloads"sv)
{
- HandleBatchGetCachePayloads(AsyncRequest, BatchRequest);
+ HandleRpcGetCachePayloads(AsyncRequest, BatchRequest);
}
else
{
@@ -820,7 +820,7 @@ HttpStructuredCacheService::HandleBatchRequest(zen::HttpServerRequest& Request)
}
void
-HttpStructuredCacheService::HandleBatchGetCacheRecords(zen::HttpServerRequest& Request, CbObjectView BatchRequest)
+HttpStructuredCacheService::HandleRpcGetCacheRecords(zen::HttpServerRequest& Request, CbObjectView BatchRequest)
{
using namespace fmt::literals;
@@ -959,7 +959,7 @@ HttpStructuredCacheService::HandleBatchGetCacheRecords(zen::HttpServerRequest& R
}
void
-HttpStructuredCacheService::HandleBatchGetCachePayloads(zen::HttpServerRequest& Request, CbObjectView BatchRequest)
+HttpStructuredCacheService::HandleRpcGetCachePayloads(zen::HttpServerRequest& Request, CbObjectView BatchRequest)
{
using namespace fmt::literals;