-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
So far I've implemented a logger call inside each handler, which doesn't look like the best idea.
I think the best place to log requests is right after the parser, so it's really nice to have some kind of middleware support.
Probably somewhere in here?
Lines 45 to 53 in 352acaa
resp := make([]*Response, len(rs)) | |
for i := range rs { | |
resp[i] = mr.InvokeMethod(r.Context(), rs[i]) | |
} | |
if err := SendResponse(w, resp, batch); err != nil { | |
fmt.Fprint(w, "Failed to encode result objects") | |
w.WriteHeader(http.StatusInternalServerError) | |
} |
Metadata
Metadata
Assignees
Labels
No labels