in funcframework/framework.go [67:79]
func RegisterHTTPFunction(path string, fn interface{}) {
defer recoverPanic(nil, "function registration", false)
fnHTTP, ok := fn.(func(http.ResponseWriter, *http.Request))
if !ok {
panic("expected function to have signature func(http.ResponseWriter, *http.Request)")
}
ctx := context.Background()
if err := RegisterHTTPFunctionContext(ctx, path, fnHTTP); err != nil {
panic(fmt.Sprintf("unexpected error in RegisterEventFunctionContext: %v", err))
}
}