Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
http_client.hpp
Go to the documentation of this file.
1
5#pragma once
6
8#include <fc/time.hpp>
9#include <fc/variant.hpp>
11#include <fc/network/url.hpp>
12
13namespace fc {
14
16 public:
19
20 variant post_sync(const url& dest, const variant& payload, const time_point& deadline = time_point::maximum());
21
22 template<typename T>
23 variant post_sync(const url& dest, const T& payload, const time_point& deadline = time_point::maximum()) {
24 variant payload_v;
25 to_variant(payload, payload_v);
26 return post_sync(dest, payload_v, deadline);
27 }
28
29 void add_cert(const std::string& cert_pem_string);
30 void set_verify_peers(bool enabled);
31
32private:
33 std::unique_ptr<class http_client_impl> _my;
34};
35
36}
variant post_sync(const url &dest, const variant &payload, const time_point &deadline=time_point::maximum())
void set_verify_peers(bool enabled)
void add_cert(const std::string &cert_pem_string)
variant post_sync(const url &dest, const T &payload, const time_point &deadline=time_point::maximum())
static constexpr time_point maximum()
Definition time.hpp:46
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition variant.hpp:191
Defines exception's used by fc.
namespace sysio::chain
Definition authority.cpp:3
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition authority.cpp:4
#define T(meth, val, expected)