S3 API: support ListBuckets

This commit is contained in:
Quentin Dufour
2021-05-02 22:30:56 +02:00
committed by Gitea
parent ee2a3d363b
commit 631c36b3ff
6 changed files with 115 additions and 2 deletions
+6
View File
@@ -72,6 +72,12 @@ impl From<roxmltree::Error> for Error {
}
}
impl From<quick_xml::de::DeError> for Error {
fn from(err: quick_xml::de::DeError) -> Self {
Self::InvalidXML(format!("{}", err))
}
}
impl Error {
/// Get the HTTP status code that best represents the meaning of the error for the client
pub fn http_status_code(&self) -> StatusCode {