TensorFlow Serving C++ API Documentation
tensorflow_serving
model_servers
http_server.h
1
/* Copyright 2018 Google Inc. All Rights Reserved.
2
3
Licensed under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License.
5
You may obtain a copy of the License at
6
7
http://www.apache.org/licenses/LICENSE-2.0
8
9
Unless required by applicable law or agreed to in writing, software
10
distributed under the License is distributed on an "AS IS" BASIS,
11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
See the License for the specific language governing permissions and
13
limitations under the License.
14
==============================================================================*/
15
#ifndef TENSORFLOW_SERVING_MODEL_SERVERS_HTTP_SERVER_H_
16
#define TENSORFLOW_SERVING_MODEL_SERVERS_HTTP_SERVER_H_
17
18
#include <memory>
19
20
#include "tensorflow_serving/config/monitoring_config.pb.h"
21
#include "tensorflow_serving/util/net_http/server/public/httpserver_interface.h"
22
23
namespace
tensorflow {
24
namespace
serving {
25
26
class
ServerCore;
27
28
// Returns a HTTP Server that has following endpoints:
29
//
30
// o HTTP/REST API (under /v1/models/...)
31
//
32
// The returned server is in a state of accepting new requests.
33
std::unique_ptr<net_http::HTTPServerInterface> CreateAndStartHttpServer(
34
int
port,
int
num_threads,
int
timeout_in_ms,
35
const
MonitoringConfig& monitoring_config, ServerCore* core);
36
37
}
// namespace serving
38
}
// namespace tensorflow
39
#endif
// TENSORFLOW_SERVING_MODEL_SERVERS_HTTP_SERVER_H_
Generated by
1.9.1