Skip to content

Commit b38a5e6

Browse files
authored
Exposes surf's with_http_client (#94)
1 parent 57eb8f0 commit b38a5e6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

influxdb/src/client/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ impl Client {
9191
self
9292
}
9393

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+
94100
/// Returns the name of the database the client is using
95101
pub fn database_name(&self) -> &str {
96102
// safe to unwrap: we always set the database name in `Self::new`

0 commit comments

Comments
 (0)