- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 812 for Req (0.02 sec)
-
src/net/http/httptrace/example_test.go
"net/http/httptrace" ) func Example() { req, _ := http.NewRequest("GET", "http://example.com", nil) trace := &httptrace.ClientTrace{ GotConn: func(connInfo httptrace.GotConnInfo) { fmt.Printf("Got Conn: %+v\n", connInfo) }, DNSDone: func(dnsInfo httptrace.DNSDoneInfo) { fmt.Printf("DNS Info: %+v\n", dnsInfo) }, } req = req.WithContext(httptrace.WithClientTrace(req.Context(), trace))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 05:11:45 UTC 2016 - 712 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/union/unionauth_test.go
handler2 := &mockAuthRequestHandler{returnUser: user2, isAuthenticated: true} authRequestHandler := New(handler1, handler2) req, _ := http.NewRequest("GET", "http://example.org", nil) resp, isAuthenticated, err := authRequestHandler.AuthenticateRequest(req) if err != nil { t.Errorf("Unexpected error: %v", err) } if !isAuthenticated { t.Errorf("Unexpectedly unauthenticated: %v", isAuthenticated) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 22 17:16:59 UTC 2018 - 5.2K bytes - Viewed (0) -
pkg/apis/certificates/v1beta1/defaults_test.go
t.Fatal(err) } return csr } tests := map[string]struct { req *x509.CertificateRequest usages []capi.KeyUsage exp bool }{ "defaults for kubelet-serving": { req: newCSR(kubeletServerPEMOptions), usages: kubeletServerUsages, exp: true, }, "defaults without key encipherment for kubelet-serving": { req: newCSR(kubeletServerPEMOptions), usages: kubeletServerUsagesNoRSA,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 27 08:04:25 UTC 2022 - 16.9K bytes - Viewed (0) -
pilot/pkg/xds/workload.go
func (e WorkloadGenerator) GenerateDeltas( proxy *model.Proxy, req *model.PushRequest, w *model.WatchedResource, ) (model.Resources, model.DeletedResources, model.XdsLogDetails, bool, error) { updatedAddresses := model.ConfigNameOfKind(req.ConfigsUpdated, kind.Address) isReq := req.IsRequest() if len(updatedAddresses) == 0 && len(req.ConfigsUpdated) > 0 { // Nothing changed..
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 14:14:30 UTC 2024 - 8.7K bytes - Viewed (0) -
internal/kms/secret-key.go
if req.Name != s.keyID { return ErrNotSupported } return ErrKeyExists } // GenerateKey decrypts req.Ciphertext. The key name req.Name must match the key // name of the secretKey. // // The returned DEK is encrypted using AES-GCM and the ciphertext format is compatible // with KES and MinKMS.
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue May 07 23:55:37 UTC 2024 - 8.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/requestinfo.go
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { ctx := req.Context() info, err := resolver.NewRequestInfo(req) if err != nil { responsewriters.InternalError(w, req, fmt.Errorf("failed to create RequestInfo: %v", err)) return } req = req.WithContext(request.WithRequestInfo(ctx, info)) handler.ServeHTTP(w, req) })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 18 21:03:31 UTC 2018 - 1.2K bytes - Viewed (0) -
pkg/ctrlz/home.go
if req.URL.Path == "/" { // home page fw.RenderHTML(w, homeTmpl, getHomeInfo()) } else if req.URL.Path == "/homej" || req.URL.Path == "/homej/" { fw.RenderJSON(w, http.StatusOK, getHomeInfo()) } else if a, err := assets.FS.ReadFile("static" + req.URL.Path); err == nil { // static asset ext := strings.ToLower(filepath.Ext(req.URL.Path))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 14:06:41 UTC 2023 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go
func RecordRequestAbort(req *http.Request, requestInfo *request.RequestInfo) { if requestInfo == nil { requestInfo = &request.RequestInfo{Verb: req.Method, Path: req.URL.Path} } scope := CleanScope(requestInfo) reportedVerb := cleanVerb(CanonicalVerb(strings.ToUpper(req.Method), scope), "", req, requestInfo) resource := requestInfo.Resource
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 07:29:19 UTC 2023 - 35K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/httplog/httplog.go
return rl } return nil } func respLoggerFromRequest(req *http.Request) *respLogger { return respLoggerFromContext(req.Context()) } func newLoggedWithStartTime(req *http.Request, w http.ResponseWriter, startTime time.Time) *respLogger { logger := &respLogger{ startTime: startTime, req: req, userAgent: req.UserAgent(), w: w,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 07 10:10:35 UTC 2023 - 9.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/x509/x509.go
*/ remaining := req.TLS.PeerCertificates[0].NotAfter.Sub(time.Now()) clientCertificateExpirationHistogram.WithContext(req.Context()).Observe(remaining.Seconds()) chains, err := req.TLS.PeerCertificates[0].Verify(optsCopy) if err != nil { return nil, false, fmt.Errorf( "verifying certificate %s failed: %w", certificateIdentifier(req.TLS.PeerCertificates[0]), err, ) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 18 01:31:22 UTC 2023 - 10.3K bytes - Viewed (0)