use crate::api::*; use hyper::{Body, Method, Request, Response}; pub type Req = Request; pub type Res = Response; pub type Ret = Result; #[derive(Debug, Clone)] pub struct Params { pub bucket: String, pub key: String, pub version_id: String, // partial reads pub head_only: bool, // = HTTP HEAD method - no body should be returned pub range: ObjectRange, // TODO: conditional reads (e.g. if-match, if-none-match) ? // pub if_modified_since: Option