Trait feignhttp::HttpRequest[][src]

pub trait HttpRequest {
    fn build_default(url: &str, method: &str) -> Self;
fn build_with_config(url: &str, method: &str, config: HttpConfig) -> Self;
fn headers(self, header_map: HashMap<&str, String>) -> Self;
fn query(self, query: &Vec<(&str, String)>) -> Self; }

A trait of request.

Required methods

fn build_default(url: &str, method: &str) -> Self[src]

fn build_with_config(url: &str, method: &str, config: HttpConfig) -> Self[src]

fn headers(self, header_map: HashMap<&str, String>) -> Self[src]

fn query(self, query: &Vec<(&str, String)>) -> Self[src]

Loading content...

Implementors

impl HttpRequest for RequestWrapper[src]

Loading content...