| 74 | |
| 75 | |
| 76 | void 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 | |
| 92 | void ShowUsage(const char *program) { |
| 93 | printf("\n"); |
nothing calls this directly
no outgoing calls
no test coverage detected