Go to file
Yoshua Wuyts 2cab4a7281 Apply suggestions from code review 2020-07-10 17:25:32 +02:00
.github add clippy to ci 2020-06-25 14:13:21 -07:00
benches remove unnecessary `move`s 2020-06-10 14:22:32 -07:00
examples return a result from sse sender 2020-07-07 14:36:45 -07:00
src Apply suggestions from code review 2020-07-10 17:25:32 +02:00
tests Apply suggestions from code review 2020-07-10 17:25:32 +02:00
.gitignore Basic cookie extractor (#114) 2019-01-24 17:27:41 +01:00
Cargo.toml update to async-sse 4.0.0 2020-07-07 15:10:18 -07:00
LICENSE-APACHE . 2018-08-08 16:31:52 +02:00
LICENSE-MIT . 2018-08-08 16:31:52 +02:00
README.md Update the readme with the latest versions 2020-06-14 14:50:13 -07:00

README.md

Tide

Serve the web

A modular web framework built around async/await. It's actively being developed and not ready for production yet.

Getting started

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.11.0"
async-std = { version = "1.6.0", features = ["attributes"] }

Examples

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 hello

TLS termination and reverse proxies

Tide's default backend currently does not support TLS, and only supports HTTP/1.1.

To use with nginx

In order to use nginx as reverse proxy for Tide, your upstream proxy configuration must include this line:

proxy_http_version 1.1;

Resources

Read about the design here:

Contributing

Want to join us? Check out our The "Contributing" section of the guide and take a look at some of these issues:

Conduct

The Tide project adheres to the Contributor Covenant Code of Conduct. This describes the minimum behavior expected from all contributors.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.