MCPcopy Create free account
hub / github.com/golang/appengine / Middleware

Function Middleware

internal/api.go:92–94  ·  view source on GitHub ↗

Middleware wraps an http handler so that it can make GAE API calls

(next http.Handler)

Source from the content-addressed store, hash-verified

90
91// Middleware wraps an http handler so that it can make GAE API calls
92func Middleware(next http.Handler) http.Handler {
93 return handleHTTPMiddleware(executeRequestSafelyMiddleware(next))
94}
95
96func handleHTTPMiddleware(next http.Handler) http.Handler {
97 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 5

MainFunction · 0.70
TestDelayedLogFlushingFunction · 0.70
TestLogFlushingFunction · 0.70
TestRemoteAddrFunction · 0.70
TestPanickingHandlerFunction · 0.70

Calls 2

handleHTTPMiddlewareFunction · 0.70

Tested by 4

TestDelayedLogFlushingFunction · 0.56
TestLogFlushingFunction · 0.56
TestRemoteAddrFunction · 0.56
TestPanickingHandlerFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…