...
This commit is contained in:
parent
7fbec72c10
commit
966c1204d7
1 changed files with 21 additions and 0 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue