Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::http_client Class Reference

#include <http_client.hpp>

Public Member Functions

 http_client ()
 
 ~http_client ()
 
variant post_sync (const url &dest, const variant &payload, const time_point &deadline=time_point::maximum())
 
template<typename T >
variant post_sync (const url &dest, const T &payload, const time_point &deadline=time_point::maximum())
 
void add_cert (const std::string &cert_pem_string)
 
void set_verify_peers (bool enabled)
 

Detailed Description

Definition at line 15 of file http_client.hpp.

Constructor & Destructor Documentation

◆ http_client()

fc::http_client::http_client ( )

Definition at line 429 of file http_client.cpp.

430:_my(new http_client_impl())
431{
432
433}

◆ ~http_client()

fc::http_client::~http_client ( )

Definition at line 450 of file http_client.cpp.

450 {
451
452}

Member Function Documentation

◆ add_cert()

void fc::http_client::add_cert ( const std::string & cert_pem_string)

Definition at line 442 of file http_client.cpp.

442 {
443 _my->add_cert(cert_pem_string);
444}

◆ post_sync() [1/2]

template<typename T >
variant fc::http_client::post_sync ( const url & dest,
const T & payload,
const time_point & deadline = time_point::maximum() )
inline

Definition at line 23 of file http_client.hpp.

23 {
24 variant payload_v;
25 to_variant(payload, payload_v);
26 return post_sync(dest, payload_v, deadline);
27 }
variant post_sync(const url &dest, const variant &payload, const time_point &deadline=time_point::maximum())
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
Definition authority.cpp:4
Here is the call graph for this function:

◆ post_sync() [2/2]

variant fc::http_client::post_sync ( const url & dest,
const variant & payload,
const time_point & deadline = time_point::maximum() )

Definition at line 435 of file http_client.cpp.

435 {
436 if(dest.proto() == "unix")
437 return _my->post_sync(_my->get_unix_url(*dest.host()), payload, deadline);
438 else
439 return _my->post_sync(dest, payload, deadline);
440}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_verify_peers()

void fc::http_client::set_verify_peers ( bool enabled)

Definition at line 446 of file http_client.cpp.

446 {
447 _my->set_verify_peers(enabled);
448}

The documentation for this class was generated from the following files: