MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / client_config

Function client_config

crates/chat-cli/src/request.rs:52–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52fn client_config() -> ClientConfig {
53 let provider = rustls::crypto::CryptoProvider::get_default()
54 .cloned()
55 .unwrap_or_else(|| Arc::new(rustls::crypto::ring::default_provider()));
56
57 ClientConfig::builder_with_provider(provider)
58 .with_protocol_versions(rustls::DEFAULT_VERSIONS)
59 .expect("Failed to set supported TLS versions")
60 .with_root_certificates(create_default_root_cert_store())
61 .with_no_client_auth()
62}
63
64static USER_AGENT: LazyLock<String> = LazyLock::new(|| {
65 let name = current_exe()

Callers 1

new_clientFunction · 0.85

Calls 2

default_providerFunction · 0.50

Tested by

no test coverage detected