Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for wroteHeader (0.26 sec)

  1. src/net/http/server.go

    	// at the time of res.writeHeader, if res.writeHeader is
    	// called and extra buffering is being done to calculate
    	// Content-Type and/or Content-Length.
    	header Header
    
    	// wroteHeader tells whether the header's been written to "the
    	// wire" (or rather: w.conn.buf). this is unlike
    	// (*response).wroteHeader, which tells only whether it was
    	// logically written.
    	wroteHeader bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    			exitHandler := make(chan bool, 1)
    			defer close(exitHandler)
    			lastLine := make(chan int, 1)
    
    			sh := HandlerFunc(func(w ResponseWriter, r *Request) {
    				w.WriteHeader(404)
    				w.WriteHeader(404)
    				w.WriteHeader(404)
    				w.WriteHeader(404)
    				_, _, line, _ := runtime.Caller(0)
    				lastLine <- line
    				<-exitHandler
    			})
    
    			if !tt.mustTimeout {
    				exitHandler <- true
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. src/net/http/transport_test.go

    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		addrSeen[r.RemoteAddr]++
    		if r.URL.Path == "/chunked/" {
    			w.WriteHeader(200)
    			w.(Flusher).Flush()
    		} else {
    			w.Header().Set("Content-Length", strconv.Itoa(len(msg)))
    			w.WriteHeader(200)
    		}
    		w.Write([]byte(msg))
    	})).ts
    
    	for pi, path := range []string{"/content-length/", "/chunked/"} {
    		wantLen := []int{len(msg), -1}[pi]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  4. cmd/admin-handlers.go

    			case <-ticker.C:
    				if !started {
    					// Start writing response to client
    					started = true
    					setCommonHeaders(w)
    					setEventStreamHeaders(w)
    					// Set 200 OK status
    					w.WriteHeader(200)
    				}
    				// Send whitespace and keep connection open
    				if _, err := w.Write([]byte(" ")); err != nil {
    					return
    				}
    				w.(http.Flusher).Flush()
    			case hr := <-respCh:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    	}
    
    	// Set any additional requested response headers.
    	setHeadGetRespHeaders(w, r.Form)
    
    	// Successful response.
    	if rs != nil || opts.PartNumber > 0 {
    		w.WriteHeader(http.StatusPartialContent)
    	} else {
    		w.WriteHeader(http.StatusOK)
    	}
    
    	// Notify object accessed via a HEAD request.
    	sendEvent(eventArgs{
    		EventName:    event.ObjectAccessedHead,
    		BucketName:   bucket,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/oidc/oidc_test.go

    			}
    			token, err := jws.CompactSerialize()
    			if err != nil {
    				t.Errorf("while serializing response token: %v", err)
    			}
    			w.Write([]byte(token))
    		default:
    			w.WriteHeader(http.StatusNotFound)
    			fmt.Fprintf(w, "unexpected URL: %v", r.URL)
    		}
    	}))
    	klog.V(4).Infof("Serving OIDC at: %v", ts.URL)
    	return ts
    }
    
    func toKeySet(keys []*jose.JSONWebKey) jose.JSONWebKeySet {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 97.7K bytes
    - Viewed (0)
  7. pkg/controller/garbagecollector/garbagecollector_test.go

    		if !ok {
    			fakeResponse.statusCode = 200
    			fakeResponse.content = []byte(`{"apiVersion": "v1", "kind": "List"}`)
    		}
    		response.Header().Set("Content-Type", "application/json")
    		response.WriteHeader(fakeResponse.statusCode)
    		response.Write(fakeResponse.content)
    	}()
    
    	// This is to allow the fakeActionHandler to simulate a watch being opened
    	if strings.Contains(request.URL.RawQuery, "watch=true") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top