Open3D (C++ API)  0.17.0
HttpServerRequestHandler.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// Copyright (c) 2018-2023 www.open3d.org
5// SPDX-License-Identifier: MIT
6// ----------------------------------------------------------------------------
7// ----------------------------------------------------------------------------
8// Contains source code from
9// https://github.com/mpromonet/webrtc-streamer
10//
11// This software is in the public domain, furnished "as is", without technical
12// support, and with no warranty, express or implied, as to its usefulness for
13// any purpose.
14// ----------------------------------------------------------------------------
15//
16// This is a private header. It shall be hidden from Open3D's public API. Do not
17// put this in Open3D.h.in.
18
19#pragma once
20
21#include <CivetServer.h>
22#include <json/json.h>
23
24#include <functional>
25#include <map>
26
27namespace open3d {
28namespace visualization {
29namespace webrtc_server {
30
31class HttpServerRequestHandler : public CivetServer {
32public:
33 typedef std::function<Json::Value(const struct mg_request_info* req_info,
34 const Json::Value&)>
36
37 HttpServerRequestHandler(std::map<std::string, HttpFunction>& func,
38 const std::vector<std::string>& options);
39};
40
41} // namespace webrtc_server
42} // namespace visualization
43} // namespace open3d
HttpServerRequestHandler(std::map< std::string, HttpFunction > &func, const std::vector< std::string > &options)
Definition: HttpServerRequestHandler.cpp:126
std::function< Json::Value(const struct mg_request_info *req_info, const Json::Value &)> HttpFunction
Definition: HttpServerRequestHandler.h:35
Definition: PinholeCameraIntrinsic.cpp:16