pretend 0.4.0

pretend is a modular, Feign-inspired, HTTP client based on macros.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(unused_imports)]

use pretend::{pretend, Result};

#[pretend]
trait Test {
    #[request(method = "GET", path = "/get")]
    #[header(value = "test")]
    async fn test_1(&self) -> Result<()>;
    #[request(method = "GET", path = "/get")]
    #[header(name = "X-Test")]
    async fn test_2(&self) -> Result<()>;
    #[request(method = "GET", path = "/get")]
    #[header(name = "X-Test", value = "test", other = "something")]
    async fn test_3(&self) -> Result<()>;
}

fn main() {}