Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for StatusOK (0.1 sec)

  1. cmd/object-handlers_test.go

    	// Call the ServeHTTP to executes the registered handler.
    	apiRouter.ServeHTTP(rec, req)
    	// Assert the response code with the expected status.
    	if rec.Code != http.StatusOK {
    		t.Fatalf("%s:  Expected the response status to be `%d`, but instead found `%d`", instanceType, http.StatusOK, rec.Code)
    	}
    
    	// decode the response body.
    	decoder := xml.NewDecoder(rec.Body)
    	multipartResponse := &InitiateMultipartUploadResponse{}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    				return
    			}
    
    			okSt := (ci.StatusCode == http.StatusOK || ci.StatusCode == http.StatusPartialContent ||
    				ci.StatusCode == http.StatusPreconditionFailed || ci.StatusCode == http.StatusNotModified)
    			if okSt {
    				ci.WriteHeaders(w, func() {
    					// set common headers
    					setCommonHeaders(w)
    				}, func() {
    					okSt := (ci.StatusCode == http.StatusOK || ci.StatusCode == http.StatusPartialContent)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 124.2K bytes
    - Viewed (0)
  3. src/net/http/server.go

    	// their value to nil.
    	Header() Header
    
    	// Write writes the data to the connection as part of an HTTP reply.
    	//
    	// If [ResponseWriter.WriteHeader] has not yet been called, Write calls
    	// WriteHeader(http.StatusOK) before writing the data. If the Header
    	// does not contain a Content-Type line, Write adds a Content-Type set
    	// to the result of passing the initial 512 bytes of written data to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  4. src/net/http/serve_test.go

    	c := ts.Client()
    
    	res, err := c.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer res.Body.Close()
    	if res.StatusCode != StatusOK {
    		t.Errorf("got res.StatusCode %d, want %v", res.StatusCode, StatusOK)
    	}
    }
    
    // https://golang.org/issues/22084
    func TestTimeoutHandlerPanicRecovery(t *testing.T) {
    	wrapper := func(h Handler) Handler {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top