MCPcopy Create free account
hub / github.com/GDATASoftwareAG/vaas / new_http_client

Function new_http_client

rust/src/http.rs:11–16  ·  view source on GitHub ↗

Retrieve a new HTTP client pre-configured for VaaS usage. Returns an error if the HTTP backend cannot be initialized.

()

Source from the content-addressed store, hash-verified

9/// Retrieve a new HTTP client pre-configured for VaaS usage.
10/// Returns an error if the HTTP backend cannot be initialized.
11pub fn new_http_client() -> VResult<reqwest::Client> {
12 Ok(reqwest::Client::builder()
13 .user_agent(USER_AGENT)
14 .http1_only()
15 .build()?)
16}
17
18pub async fn send_get_request(
19 client: &reqwest::Client,

Callers 2

try_newMethod · 0.85

Calls 1

buildMethod · 0.45

Tested by

no test coverage detected