1 parent 0088558 commit 9ffc122Copy full SHA for 9ffc122
2 files changed
examples/responder/main.mbt
@@ -40,7 +40,10 @@ async fn main {
40
})
41
42
// Echo Server
43
- ..post("/echo", e => e.req)
+ ..post("/echo", e => {
44
+ let body : Bytes = e.req.body()
45
+ body
46
+ })
47
48
// 404 Page
49
.get("/404", _ => {
examples/route/main.mbt
@@ -58,7 +58,10 @@ async fn main {
58
59
60
61
62
63
64
65
66
67
.use_middleware(not_found_middleware())
0 commit comments