Пример #1
0
 basic_response<Tag> request_skeleton(basic_request<Tag> const& request_,
                                      string_type method, bool get_body,
                                      body_callback_function_type callback,
                                      body_generator_function_type generator) {
   typename connection_base::connection_ptr connection_;
   connection_ = connection_base::get_connection(
       resolver_, request_, always_verify_peer_, certificate_filename_,
       verify_path_, certificate_file_, private_key_file_);
   return connection_->send_request(method, request_, get_body, callback,
                                    generator);
 }
Пример #2
0
 basic_response<Tag> const request_skeleton(
     basic_request<Tag> const& request_,
     string_type method,
     bool get_body,
     body_callback_function_type callback) {
   typename connection_base::connection_ptr connection_;
   connection_ = connection_base::get_connection(resolver_,
                                                 request_,
                                                 certificate_file,
                                                 verify_path);
   return connection_->send_request(method, request_, get_body, callback);
 }
Пример #3
0
 basic_response<Tag> const request_skeleton(basic_request<Tag> const & request_, string_type method, bool get_body) {
     typename connection_base::connection_ptr connection_;
     connection_ = connection_base::get_connection(resolver_, request_);
     return connection_->send_request(method, request_, get_body);
 }