We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57eb8f0 commit b38a5e6Copy full SHA for b38a5e6
influxdb/src/client/mod.rs
@@ -91,6 +91,12 @@ impl Client {
91
self
92
}
93
94
+ /// Replaces the HTTP Client
95
+ pub fn with_http_client(mut self, http_client: HttpClient) -> Self {
96
+ self.client = http_client;
97
+ self
98
+ }
99
+
100
/// Returns the name of the database the client is using
101
pub fn database_name(&self) -> &str {
102
// safe to unwrap: we always set the database name in `Self::new`
0 commit comments