MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / copy_settings

Method copy_settings

examples/server/httplib.h:6219–6261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6217inline bool ClientImpl::is_valid() const { return true; }
6218
6219inline void ClientImpl::copy_settings(const ClientImpl &rhs) {
6220 client_cert_path_ = rhs.client_cert_path_;
6221 client_key_path_ = rhs.client_key_path_;
6222 connection_timeout_sec_ = rhs.connection_timeout_sec_;
6223 read_timeout_sec_ = rhs.read_timeout_sec_;
6224 read_timeout_usec_ = rhs.read_timeout_usec_;
6225 write_timeout_sec_ = rhs.write_timeout_sec_;
6226 write_timeout_usec_ = rhs.write_timeout_usec_;
6227 basic_auth_username_ = rhs.basic_auth_username_;
6228 basic_auth_password_ = rhs.basic_auth_password_;
6229 bearer_token_auth_token_ = rhs.bearer_token_auth_token_;
6230#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
6231 digest_auth_username_ = rhs.digest_auth_username_;
6232 digest_auth_password_ = rhs.digest_auth_password_;
6233#endif
6234 keep_alive_ = rhs.keep_alive_;
6235 follow_location_ = rhs.follow_location_;
6236 url_encode_ = rhs.url_encode_;
6237 address_family_ = rhs.address_family_;
6238 tcp_nodelay_ = rhs.tcp_nodelay_;
6239 socket_options_ = rhs.socket_options_;
6240 compress_ = rhs.compress_;
6241 decompress_ = rhs.decompress_;
6242 interface_ = rhs.interface_;
6243 proxy_host_ = rhs.proxy_host_;
6244 proxy_port_ = rhs.proxy_port_;
6245 proxy_basic_auth_username_ = rhs.proxy_basic_auth_username_;
6246 proxy_basic_auth_password_ = rhs.proxy_basic_auth_password_;
6247 proxy_bearer_token_auth_token_ = rhs.proxy_bearer_token_auth_token_;
6248#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
6249 proxy_digest_auth_username_ = rhs.proxy_digest_auth_username_;
6250 proxy_digest_auth_password_ = rhs.proxy_digest_auth_password_;
6251#endif
6252#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
6253 ca_cert_file_path_ = rhs.ca_cert_file_path_;
6254 ca_cert_dir_path_ = rhs.ca_cert_dir_path_;
6255 ca_cert_store_ = rhs.ca_cert_store_;
6256#endif
6257#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
6258 server_certificate_verification_ = rhs.server_certificate_verification_;
6259#endif
6260 logger_ = rhs.logger_;
6261}
6262
6263inline socket_t ClientImpl::create_client_socket(Error &error) const {
6264 if (!proxy_host_.empty() && proxy_port_ != -1) {

Callers 1

redirectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected