feignhttp 0.6.1

Declarative HTTP client for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::error::Result;
use std::collections::HashMap;

pub trait FeignContext: Send + Sync {
    fn param_map(&self) -> HashMap<String, String>;

    fn path_map(&self) -> HashMap<String, String>;

    fn header_map(&self) -> Result<HashMap<String, String>>;

    fn query_map(&self) -> Result<Vec<(String, String)>>;
}