We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc2118c commit 00cb0f3Copy full SHA for 00cb0f3
src/server.rs
@@ -304,12 +304,12 @@ impl<State: Send + Sync + 'static> Server<State> {
304
/// #
305
/// use tide::http::{Url, Method, Request, Response};
306
///
307
- /// // Initialize the application with state.
308
/// let mut app = tide::new();
309
/// app.at("/").get(|_| async move { Ok("hello world") });
310
311
/// let req = Request::new(Method::Get, Url::parse("https://example.com")?);
312
/// let res: Response = app.respond(req).await?;
+ ///
313
/// assert_eq!(res.status(), 200);
314
315
/// # Ok(()) }
0 commit comments