This commit is contained in:
Andrey Parhomenko 2024-02-25 22:36:00 +05:00
parent 7fbec72c10
commit 966c1204d7

View file

@ -84,6 +84,27 @@ Case(
c.Printf("%v", opts) c.Printf("%v", opts)
}), }),
), ),
).Default(
bond.Func(func(c *bond.Context){
c.SetContentType(contents.Plain)
c.Printf(
"AbsPath: %q\n" +
"Prefix: %q\n" +
"Path: %q\n"+
"Content-Type: %q\n",
c.AbsPath(),
c.PathPrefix(),
c.Path(),
c.ContentType(),
)
c.Printf("Query:\n")
for k, vs := range c.Query() {
c.Printf("\t%q:\n", k)
for _, v := range vs {
c.Printf("\t\t%q\n", v)
}
}
}),
)) ))
func main() { func main() {