Realm C++ SDK Version v2.2.0

utils.hpp

1
2//
3// Copyright 2024 Realm Inc.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16//
18
19#ifndef CPPREALM_NETWORKING_UTILS_HPP
20#define CPPREALM_NETWORKING_UTILS_HPP
21
22#include <cpprealm/networking/websocket.hpp>
23
24#include <optional>
25
26namespace realm {
27 namespace app {
28 struct Request;
29 struct Response;
30 }
31 namespace sync {
32 struct WebSocketEndpoint;
33 }
34
35 namespace networking {
36 struct request;
37 struct response;
38 }
39}
40
41namespace realm::internal::networking {
42 ::realm::networking::request to_request(const ::realm::app::Request&);
43 ::realm::app::Response to_core_response(const ::realm::networking::response&);
44
45 ::realm::sync::WebSocketEndpoint to_core_websocket_endpoint(const ::realm::networking::websocket_endpoint& ep,
46 const std::optional<::realm::networking::default_socket_provider::configuration>& config);
47 ::realm::networking::websocket_endpoint to_websocket_endpoint(const ::realm::sync::WebSocketEndpoint& ep);
48} //namespace realm::internal::networking
49
50#endif //CPPREALM_NETWORKING_UTILS_HPP
Definition: http.hpp:46
Definition: websocket.hpp:46