-
Notifications
You must be signed in to change notification settings - Fork 717
Closed
Description
We can implement a helper function for S3Builder like async fn detect_region(&self) -> Result<Option<String>> to make it easier to find region.
I want an API of S3Builder like async fn detect_region(&self) -> Result<Option<String>>, it's used to fetch region with input endpoint and bucket. (Maybe API should be async fn detect_region(&self, endpoint: &str, bucket: &str)?)
The API should use the client in S3Builder to detect the region, the behavior will be similiar to
The caller can use this function to detect region when they needed in async context. (Please note that S3Builder::build is blocking API, so we can't do this.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels