1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
use super::super::{Authorization, Idempotent, QueryPair};
use auto_impl::auto_impl;
use qiniu_http::{HeaderMap, Method, UserAgent, Version};
use std::fmt::Debug;
#[auto_impl(&, &mut, Box, Rc, Arc)]
pub trait SimplifiedCallbackContext: Sync + Send + Debug {
fn use_https(&self) -> bool;
fn method(&self) -> &Method;
fn version(&self) -> Version;
fn path(&self) -> &str;
fn query(&self) -> &str;
fn query_pairs(&self) -> &[QueryPair];
fn headers(&self) -> &HeaderMap;
fn appended_user_agent(&self) -> &UserAgent;
fn authorization(&self) -> Option<&Authorization>;
fn idempotent(&self) -> Idempotent;
}