mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
examples: Simplify Request and Response construction (#3653)
This commit is contained in:
@@ -70,7 +70,7 @@ mod tests {
|
||||
#[tokio::test]
|
||||
async fn test_main_page() {
|
||||
let response = app()
|
||||
.oneshot(Request::builder().uri("/").body(Body::empty()).unwrap())
|
||||
.oneshot(Request::get("/").body(Body::empty()).unwrap())
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user