16 #ifndef THIRD_PARTY_TENSORFLOW_SERVING_UTIL_NET_HTTP_CLIENT_TEST_CLIENT_PUBLIC_HTTPCLIENT_H_
17 #define THIRD_PARTY_TENSORFLOW_SERVING_UTIL_NET_HTTP_CLIENT_TEST_CLIENT_PUBLIC_HTTPCLIENT_H_
19 #include "absl/memory/memory.h"
20 #include "tensorflow_serving/util/net_http/client/test_client/internal/evhttp_connection.h"
21 #include "tensorflow_serving/util/net_http/client/test_client/public/httpclient_interface.h"
27 namespace tensorflow {
33 inline std::unique_ptr<TestHTTPClientInterface> CreateEvHTTPConnection(
34 absl::string_view host,
int port) {
35 auto connection = absl::make_unique<TestEvHTTPConnection>();
36 connection = connection->Connect(host, port);
41 return std::move(connection);