From 7609c7445c2640bad16e2d77364599c19ab8584d Mon Sep 17 00:00:00 2001 From: Johannes Becker Date: Tue, 25 May 2021 10:38:43 +0200 Subject: [PATCH] matrix-sdk: Allow to get Client's RequestConfig --- matrix_sdk/src/client.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matrix_sdk/src/client.rs b/matrix_sdk/src/client.rs index 3f2c8e81..60825070 100644 --- a/matrix_sdk/src/client.rs +++ b/matrix_sdk/src/client.rs @@ -297,6 +297,11 @@ impl ClientConfig { self } + /// Get the [`RequestConfig`] + pub fn get_request_config(&self) -> &RequestConfig { + &self.request_config + } + /// Specify a client to handle sending requests and receiving responses. /// /// Any type that implements the `HttpSend` trait can be used to