finchers 0.13.5

A combinator library for builidng asynchronous HTTP services
Documentation
1
2
3
4
5
6
7
8
use finchers::prelude::*;
use finchers::test;

#[test]
fn test_map() {
    let mut runner = test::runner(endpoint::cloned("Foo").map(|_| "Bar"));
    assert_matches!(runner.apply("/"), Ok("Bar"));
}