Skip to content

Commit

Permalink
start porting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
avantgardnerio committed Dec 3, 2024
1 parent b3f9355 commit 798b9ec
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion object_store/src/aws/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl From<DeleteError> for Error {
}
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub(crate) struct S3Config {
pub region: String,
pub endpoint: Option<String>,
Expand Down Expand Up @@ -462,6 +462,27 @@ impl S3Client {
}
}

#[allow(dead_code)]
pub(crate) fn request_with_config<'a>(
&'a self,
method: Method,
path: &'a Path,
config: &'a S3Config,
) -> Request<'a> {
let url = self.config.path_url(path);
Request {
path,
builder: self.client.request(method, url),
payload: None,
payload_sha256: None,
config,
use_session_creds: true,
idempotent: false,
retry_on_conflict: false,
retry_error_body: false,
}
}

/// Make an S3 Delete Objects request <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html>
///
/// Produces a vector of results, one for each path in the input vector. If
Expand Down

0 comments on commit 798b9ec

Please sign in to comment.