18 #ifndef TENSORFLOW_SERVING_UTIL_NET_HTTP_SERVER_PUBLIC_HTTPSERVER_H_
19 #define TENSORFLOW_SERVING_UTIL_NET_HTTP_SERVER_PUBLIC_HTTPSERVER_H_
23 #include "absl/memory/memory.h"
25 #include "tensorflow_serving/util/net_http/server/internal/evhttp_server.h"
26 #include "tensorflow_serving/util/net_http/server/public/httpserver_interface.h"
28 namespace tensorflow {
37 inline std::unique_ptr<HTTPServerInterface> CreateEvHTTPServer(
38 std::unique_ptr<ServerOptions> options) {
39 auto server = absl::make_unique<EvHTTPServer>(std::move(options));
40 bool result = server->Initialize();
45 return std::move(server);