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

Function client

crates/chat-cli/src/aws_common/http_client.rs:18–21  ·  view source on GitHub ↗

Returns a wrapper around the global [fig_request::client] that implements [HttpClient].

()

Source from the content-addressed store, hash-verified

16/// Returns a wrapper around the global [fig_request::client] that implements
17/// [HttpClient].
18pub fn client() -> Client {
19 let client = crate::request::new_client().expect("failed to create http client");
20 Client::new(client.clone())
21}
22
23/// A wrapper around [reqwest::Client] that implements [HttpClient].
24///

Callers

nothing calls this directly

Calls 2

new_clientFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected