diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-12-09 13:01:20 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-12-09 13:01:20 +0100 |
| commit | 24a1c946b7017237627d69d293c05237d9b96ca5 (patch) | |
| tree | fc9669287a86df5bc863507743ca9961519bef86 /crates/rocie-client/src/apis/configuration.rs | |
| parent | chore(crates/rocie-client): Re-generate (diff) | |
| download | server-24a1c946b7017237627d69d293c05237d9b96ca5.zip | |
chore(rocie-client): Regenerate
This also adds cookie persisting to the default configuration.
Diffstat (limited to 'crates/rocie-client/src/apis/configuration.rs')
| -rw-r--r-- | crates/rocie-client/src/apis/configuration.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/rocie-client/src/apis/configuration.rs b/crates/rocie-client/src/apis/configuration.rs index 590f233..c143926 100644 --- a/crates/rocie-client/src/apis/configuration.rs +++ b/crates/rocie-client/src/apis/configuration.rs @@ -8,8 +8,6 @@ * Generated by: https://openapi-generator.tech */ - - #[derive(Debug, Clone)] pub struct Configuration { pub base_path: String, @@ -29,7 +27,6 @@ pub struct ApiKey { pub key: String, } - impl Configuration { pub fn new() -> Configuration { Configuration::default() @@ -38,10 +35,12 @@ impl Configuration { impl Default for Configuration { fn default() -> Self { + let client = reqwest::Client::builder().cookie_store(true).build().expect("to be not missconfigured"); + Configuration { base_path: "http://localhost".to_owned(), user_agent: Some("OpenAPI-Generator/0.1.0/rust".to_owned()), - client: reqwest::Client::new(), + client, basic_auth: None, oauth_access_token: None, bearer_access_token: None, |
