(h HttpHandle)
| 452 | } |
| 453 | |
| 454 | func handlerName(h HttpHandle) string { |
| 455 | t := reflect.ValueOf(h).Type() |
| 456 | if t.Kind() == reflect.Func { |
| 457 | return runtime.FuncForPC(reflect.ValueOf(h).Pointer()).Name() |
| 458 | } |
| 459 | return t.String() |
| 460 | } |
| 461 | |
| 462 | // Handle registers a new request handle with the given path and method. |
| 463 | // |
no test coverage detected