qiniu-http-client 0.2.2

Qiniu HTTP Client for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::{super::authorization::Authorization, Idempotent, QueryPair};
use qiniu_http::{HeaderMap, Method, Version};
use std::borrow::Cow;

#[derive(Default, Debug)]
pub(super) struct RequestMetadata<'r> {
    pub(super) use_https: Option<bool>,
    pub(super) method: Method,
    pub(super) version: Version,
    pub(super) path: Cow<'r, str>,
    pub(super) query: Cow<'r, str>,
    pub(super) query_pairs: Vec<QueryPair<'r>>,
    pub(super) headers: Cow<'r, HeaderMap>,
    pub(super) authorization: Option<Authorization<'r>>,
    pub(super) idempotent: Idempotent,
}