Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for respLoggerFromContext (1.11 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/httplog/httplog.go

    		handler.ServeHTTP(w, req)
    	})
    }
    
    // respLoggerFromContext returns the respLogger or nil.
    func respLoggerFromContext(ctx context.Context) *respLogger {
    	val := ctx.Value(respLoggerContextKey)
    	if rl, ok := val.(*respLogger); ok {
    		return rl
    	}
    	return nil
    }
    
    func respLoggerFromRequest(req *http.Request) *respLogger {
    	return respLoggerFromContext(req.Context())
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 10:10:35 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top