Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for decode (0.08 sec)

  1. cmd/admin-handlers.go

    		Timeout:   10 * time.Second,
    	}
    
    	resp, err := client.Do(req)
    	if err != nil {
    		ki.Error = err.Error()
    		return ki
    	}
    	defer resp.Body.Close()
    	decoder := json.NewDecoder(resp.Body)
    	if err := decoder.Decode(&ki); err != nil {
    		ki.Error = err.Error()
    	}
    	return ki
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  2. cmd/server_test.go

    	c.Assert(err, nil)
    	// expecting the response status code to be http.StatusOK(200 OK) .
    	c.Assert(response.StatusCode, http.StatusOK)
    
    	// parse the response body and obtain the new upload ID.
    	decoder := xml.NewDecoder(response.Body)
    	newResponse := &InitiateMultipartUploadResponse{}
    
    	err = decoder.Decode(newResponse)
    	c.Assert(err, nil)
    	c.Assert(len(newResponse.UploadID) > 0, true)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    	// 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{}
    
    	err = decoder.Decode(multipartResponse)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
Back to top