use crate::api::*; use hyper::{Body, Request, Response}; pub type Req = Request; pub type Res = Response; pub type Ret = Result; #[derive(Debug)] pub struct Params { pub bucket: String, pub key: String, pub body: Option, // TODO partial updates // pub head_only: bool, // put only headers but keep content // pub range: ObjectRange, // pub only the selected range of the object // TODO: conditional uploads (e.g. if-match, if-none-match) ? // pub if_modified_since: Option