rweb 0.15.0

Yet another web server framework for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub use http::StatusCode;
pub use indexmap::{indexmap, IndexMap};
pub use serde_json;
use std::convert::Infallible;
pub use std::{borrow::Cow, clone::Clone, default::Default};
pub use tokio;
use warp::{any, Filter};

pub fn provider<T: Clone + Send + Sync>(
    data: T,
) -> impl Filter<Extract = (T,), Error = Infallible> + Clone {
    any().map(move || data.clone())
}