diff --git a/cmd/test/main.go b/cmd/test/main.go index 78ff752..2357a15 100644 --- a/cmd/test/main.go +++ b/cmd/test/main.go @@ -84,6 +84,27 @@ Case( 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() {