MCPcopy Create free account
hub / github.com/Tencent/phxqueue / Dispatch

Function Dispatch

phxqueue_phxrpc/app/store/store_main.cpp:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76void Dispatch(const phxrpc::HttpRequest &req,
77 phxrpc::HttpResponse *const resp,
78 phxrpc::DispatcherArgs_t *const args) {
79 ServiceArgs_t *service_args = (ServiceArgs_t *)(args->service_args);
80
81 StoreServiceImpl service(*service_args);
82 StoreDispatcher dispatcher(service, args);
83
84 phxrpc::HttpDispatcher<StoreDispatcher> base_dispatcher(
85 dispatcher, StoreDispatcher::GetURIFuncMap());
86 if (!base_dispatcher.Dispatch(req, resp)) {
87 resp->SetStatusCode(404);
88 resp->SetReasonPhrase("Not Found");
89 }
90}
91
92void ShowUsage(const char *program) {
93 printf("\n");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected