API Docs | Contributing | Chat
A modular web framework built around async/await. It's actively being developed and not ready for production yet.
Add two dependencies to your project's Cargo.toml file: tide itself, and async-std with the feature attributes enabled:
# Example, use the version numbers you need
tide = "0.8.0"
async-std = { version = "1.5.0", features = ["attributes"] }Hello World
#[async_std::main]
async fn main() -> Result<(), std::io::Error> {
let mut app = tide::new();
app.at("/").get(|_| async { Ok("Hello, world!") });
app.listen("127.0.0.1:8080").await?;
Ok(())
}To try the included examples, check out this repository and run
$ cargo run --example # shows a list of available examples
$ cargo run --example helloTide's default backend currently does not support TLS, and only supports HTTP/1.1.
In order to use nginx as reverse proxy for Tide, your upstream proxy configuration must include this line:
proxy_http_version 1.1;