19#ifndef CPPREALM_NETWORKING_HTTP_HPP
20#define CPPREALM_NETWORKING_HTTP_HPP
22#include <cpprealm/internal/bridge/realm.hpp>
24#ifndef REALMCXX_VERSION_MAJOR
25#include <cpprealm/version_numbers.hpp>
37 열거형 클래스 http_method { get, 게시, Patch, put, del };
41 using http_headers = std::map<std::string, std::string>;
50 http_method
메서드 = http_method::get;
108 가상 send_request_to_server (
const 요청&
요청,
109 std::function<
oid(
const response&)>&& completed) = 0;
113 std::shared_ptr<http_transport_client> make_http_client();
115 [[maybe_unused]] oid
set_http_client_factory (std::function<std::shared_ptr<http_transport_client>()>&&);
127 std::optional<::realm::internal::bridge::realm::sync_config::proxy_config>
proxy_config;
129 SSLVerifyCallback = bool(
const std::string& server_address,
130 internal::bridge:: 영역::sync_config::proxy_config::port_type server_port,
131 const char* pem_data,
size_t pem_size,
int preverify_ok,
int depth);
153 oid send_request_to_server(const :: 영역::net워킹::request&
요청,
154 std::function<
oid(const :: 영역::net워킹::response&)>&& 완료);
std::optional<::realm::internal::bridge::realm::sync_config::proxy_config > proxy_config
Definition: http.hpp:127
std::optional< std::string > ssl_ Trust_certificate_path
Definition: http.hpp:139
std::function< SSLVerifyCallback > ssl_verify_callback
Definition: http.hpp:145
bool client_validate_ssl
Definition: http.hpp:135
std::optional< std::map< std::string, std::string > > custom_http_headers
Definition: http.hpp:123
내장 HTTP 전송 클라이언트.
Definition: http.hpp:118
http_headers 헤더
Definition: http.hpp:66
std::string body
Definition: http.hpp:71
uint64_t timeout_ms
Definition: http.hpp:61
http_method 메서드
Definition: http.hpp:50
std::string URL
Definition: http.hpp:55
std::string body
Definition: http.hpp:96
http_headers 헤더
Definition: http.hpp:91
std::optional< std::int32_t > client_error_code
Definition: http.hpp:101
int custom_status_code
Definition: http.hpp:86
int http_status_code
Definition: http.hpp:81