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

Function new_client

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

Source from the content-addressed store, hash-verified

29}
30
31pub fn new_client() -> Result<Client, RequestError> {
32 Ok(Client::builder()
33 .use_preconfigured_tls(client_config())
34 .user_agent(USER_AGENT.chars().filter(|c| c.is_ascii_graphic()).collect::<String>())
35 .cookie_store(true)
36 .build()?)
37}
38
39pub fn create_default_root_cert_store() -> RootCertStore {
40 let mut root_cert_store: RootCertStore = webpki_roots::TLS_SERVER_ROOTS.iter().cloned().collect();

Callers 3

get_clientFunction · 0.85
request_testFunction · 0.85
clientFunction · 0.85

Calls 2

client_configFunction · 0.85
buildMethod · 0.45

Tested by

no test coverage detected