- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 66 for wroteHeader (0.2 sec)
-
cmd/object-handlers-common.go
if ifNoneMatchETagHeader != "" { if isETagEqual(objInfo.ETag, ifNoneMatchETagHeader) { // If the object ETag matches with the specified ETag. writeHeadersPrecondition(w, objInfo) w.WriteHeader(http.StatusNotModified) return true } } // If-Modified-Since : Return the object only if it has been modified since the specified time, // otherwise return a 304 (not modified).
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 14.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/handler.go
if err != nil { // Should never happen. wrapper.go will only proxy requests to this // handler if the media type passes DiscoveryEndpointRestrictions utilruntime.HandleError(err) resp.WriteHeader(http.StatusInternalServerError) return } var targetGV schema.GroupVersion if mediaType.Convert == nil || (mediaType.Convert.GroupVersion() != apidiscoveryv2.SchemeGroupVersion &&
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Mar 02 00:29:39 UTC 2024 - 16.1K bytes - Viewed (0) -
pkg/spiffe/spiffe_test.go
} } type handler struct { statusCode int body []byte } func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { w.WriteHeader(h.statusCode) w.Write(h.body) } func TestRetrieveSpiffeBundleRootCerts(t *testing.T) { // Create a fake handler whose response can be overridden for each test case. h := &handler{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 18.1K bytes - Viewed (0) -
cmd/storage-rest-server.go
switch err { case errDiskStale: w.WriteHeader(http.StatusPreconditionFailed) case errFileNotFound, errFileVersionNotFound: w.WriteHeader(http.StatusNotFound) case errInvalidAccessKeyID, errAccessKeyDisabled, errNoAuthToken, errMalformedAuth, errAuthentication, errSkewedAuthTime: w.WriteHeader(http.StatusUnauthorized) case context.Canceled, context.DeadlineExceeded: w.WriteHeader(499) default:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 44.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go
} func (r *fakeResponder) Error(w http.ResponseWriter, req *http.Request, err error) { if r.called { r.t.Errorf("Error responder called again!\nprevious error: %v\nnew error: %v", r.err, err) } w.WriteHeader(fakeStatusCode) _, writeErr := w.Write([]byte(err.Error())) assert.NoError(r.t, writeErr) r.called = true r.err = err } type fakeConn struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 39.4K bytes - Viewed (0) -
src/image/gif/writer.go
if e.err != nil { return } _, e.err = e.w.Write(p) } func (e *encoder) writeByte(b byte) { if e.err != nil { return } e.err = e.w.WriteByte(b) } func (e *encoder) writeHeader() { if e.err != nil { return } _, e.err = io.WriteString(e.w, "GIF89a") if e.err != nil { return } // Logical screen width and height.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:38:09 UTC 2024 - 11.9K bytes - Viewed (0) -
cni/pkg/plugin/plugin_test.go
testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) { cniAddServerCalled = true if serverErr { res.WriteHeader(http.StatusInternalServerError) res.Write([]byte("server not happy")) return } res.WriteHeader(http.StatusOK) res.Write([]byte("server happy")) })) return testServer.URL, func() bool { testServer.Close() return cniAddServerCalled
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 18:32:01 UTC 2024 - 17.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go
// this simulates a watch well enough for our test signals := apirequest.ServerShutdownSignalFrom(req.Context()) if signals == nil { w.WriteHeader(http.StatusInternalServerError) return } <-signals.ShuttingDown() w.WriteHeader(http.StatusOK) }) s.Handler.NonGoRestfulMux.Handle("/apis/watches.group/v1/namespaces/foo/bar", handler) return inflight }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 18:59:21 UTC 2024 - 38.3K bytes - Viewed (0) -
cmd/admin-handlers-site-replication.go
if time.Since(connectTime) < (globalNetPerfMinDuration - time.Second) { adminLogIf(ctx, err) } } if err != nil { if errors.Is(err, io.EOF) { w.WriteHeader(http.StatusNoContent) } else { w.WriteHeader(http.StatusBadRequest) } break } } } // SiteReplicationNetPerf - everything goes to io.Discard // [POST] /minio/admin/v3/site-replication/netperf
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 19.4K bytes - Viewed (0) -
cmd/api-response.go
bugLogIf(context.Background(), fmt.Errorf("invalid WriteHeader code %v", statusCode)) statusCode = http.StatusInternalServerError } setCommonHeaders(w) if mType != mimeNone { w.Header().Set(xhttp.ContentType, string(mType)) } w.Header().Set(xhttp.ContentLength, strconv.Itoa(len(response))) w.WriteHeader(statusCode) if response != nil { w.Write(response) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 33.5K bytes - Viewed (0)