reqwest_enum::target

Trait Target

source
pub trait Target {
    // Required methods
    fn base_url(&self) -> &'static str;
    fn method(&self) -> HTTPMethod;
    fn path(&self) -> String;
    fn query(&self) -> HashMap<&'static str, &'static str>;
    fn headers(&self) -> HashMap<&'static str, &'static str>;
    fn authentication(&self) -> Option<AuthMethod>;
    fn body(&self) -> HTTPBody;

    // Provided methods
    fn query_string(&self) -> String { ... }
    fn absolute_url(&self) -> String { ... }
}

Required Methods§

source

fn base_url(&self) -> &'static str

source

fn method(&self) -> HTTPMethod

source

fn path(&self) -> String

source

fn query(&self) -> HashMap<&'static str, &'static str>

source

fn headers(&self) -> HashMap<&'static str, &'static str>

source

fn authentication(&self) -> Option<AuthMethod>

source

fn body(&self) -> HTTPBody

Provided Methods§

Implementors§