Crates.io | finchers |
lib.rs | finchers |
version | 0.13.5 |
source | src |
created_at | 2017-08-19 18:00:27.231342 |
updated_at | 2018-10-16 16:11:09.806574 |
description | A combinator library for builidng asynchronous HTTP services |
homepage | https://finchers-rs.github.io |
repository | https://github.com/finchers-rs/finchers.git |
max_upload_size | |
id | 28136 |
size | 277,739 |
finchers
finchers
is a combinator library for building asynchronous HTTP services.
The concept and design was highly inspired by finch
.
Add this item to Cargo.toml
in your project:
[dependencies]
finchers = "0.13.5"
#[macro_use]
extern crate finchers;
use finchers::prelude::*;
fn main() {
let endpoint = path!(@get / "greeting" / String)
.map(|name: String| {
format!("Hello, {}!\n", name)
});
finchers::server::start(endpoint)
.serve("127.0.0.1:4000")
.expect("failed to start the server");
}
finchers-juniper
- GraphQL integration support, based on juniper
finchers-tungstenite
- WebSocket support, based on tungstenite
finchers-session
: Session supportfinchers-template
: Template engine supportTravis CI | Appveyor | CircleCI | Codecov |
---|---|---|---|
This project is licensed under either of
at your option.