mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
23 lines
659 B
C++
23 lines
659 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#include "http_server.h"
|
|
#include "json_handling.h"
|
|
|
|
namespace onnxruntime {
|
|
namespace server {
|
|
|
|
namespace beast = boost::beast;
|
|
namespace http = beast::http;
|
|
|
|
void BadRequest(HttpContext& context, const std::string& error_message);
|
|
|
|
// TODO: decide whether this should be a class
|
|
void Predict(const std::string& name,
|
|
const std::string& version,
|
|
const std::string& action,
|
|
/* in, out */ HttpContext& context,
|
|
const std::shared_ptr<ServerEnvironment>& env);
|
|
|
|
} // namespace server
|
|
} // namespace onnxruntime
|