add another header in the example
@@ -5,7 +5,11 @@ use tide::middleware::DefaultHeaders;
fn main() {
let mut app = tide::App::new(());
- app.middleware(DefaultHeaders::new().header("X-Version", "1.0.0"));
+ app.middleware(
+ DefaultHeaders::new()
+ .header("X-Version", "1.0.0")
+ .header("X-Servier", "Tide"),
+ );
app.at("/").get(async || "Hello, world!");
app.serve("127.0.0.1:7878")
