Possibility of different error types for different APIs

This commit is contained in:
Alex Auvolat
2022-05-13 13:51:34 +02:00
parent e4e1f8f0d6
commit 983037d965
7 changed files with 64 additions and 50 deletions
+1
View File
@@ -75,6 +75,7 @@ impl ApiHandler for S3ApiServer {
const API_NAME_DISPLAY: &'static str = "S3";
type Endpoint = S3ApiEndpoint;
type Error = Error;
fn parse_endpoint(&self, req: &Request<Body>) -> Result<S3ApiEndpoint, Error> {
let authority = req