qiniu_http_client/client/callback/
simplified.rs1use super::super::{Authorization, Idempotent, QueryPair};
2use auto_impl::auto_impl;
3use qiniu_http::{HeaderMap, Method, UserAgent, Version};
4use std::fmt::Debug;
5
6#[auto_impl(&, &mut, Box, Rc, Arc)]
10pub trait SimplifiedCallbackContext: Sync + Send + Debug {
11 fn use_https(&self) -> bool;
13
14 fn method(&self) -> &Method;
16
17 fn version(&self) -> Version;
19
20 fn path(&self) -> &str;
22
23 fn query(&self) -> &str;
25
26 fn query_pairs(&self) -> &[QueryPair];
28
29 fn headers(&self) -> &HeaderMap;
31
32 fn appended_user_agent(&self) -> &UserAgent;
34
35 fn authorization(&self) -> Option<&Authorization>;
37
38 fn idempotent(&self) -> Idempotent;
40}