19#ifndef CPPREALM_NETWORKING_HTTP_HPP
20#define CPPREALM_NETWORKING_HTTP_HPP
22#include <cprealm/internal/bridge/realm.hpp>
24#ifndef REALMCXX_VERSION_MAJOR
25#include <cpprealm/version_numbers.hpp>
32namespace Realm::network {
37 enumeração classe http_method { get, post, patch, put, del };
41 using http_headers = std::map<std::string, std::string>;
50 método http_method = http_method::get;
108 virtual vaziosend_request_to_server(
const query e solicitação,
109 std::function <
null(
respostaconst &)>&& conclusão) = 0;
113 std::shared_ptr<http_transport_client> create_http_client();
115 [[ maybe_unused]]
set_http_client_factory (std::function <std::shared_ptr<http_transport_client>()>&&);
127 std::opcional<::realm::internal::bridge::realm::sync_config::proxy_config>
proxy_config;
129 usando SSLVerifyCallback = bool(
const std::string& server_address,
130 internal::bridge:: Realm::sync_config::proxy_config::port_type server_port,
131 const char* pem_data,
size_t pem_size,
int preverify_ok,
int depth);
153 vazio send_request_to_server(const :: Realm::network::
request & query ,
154 std::function <
null(const :: Realm::network::response&)>&& conclusão);
157 configuração m_configuration;
std::opcional<::realm::internal::bridge::realm::sync_config::proxy_config > proxy_config
Definition: http.hpp:127
std::opcional< std::string > ssl_rust_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
Construído em cliente de transporte HTTP .
Definition: http.hpp:118
http_headers cabeçalhos
Definition: http.hpp:66
std::string corpo
Definition: http.hpp:71
uint64_t timeout_ms
Definition: http.hpp:61
método http_method
Definition: http.hpp:50
std::string URL
Definition: http.hpp:55
std::string corpo
Definition: http.hpp:96
http_headers cabeçalhos
Definition: http.hpp:91
std::opcional < 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