Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for encodeResponse (0.09 sec)

  1. cmd/api-response.go

    	}
    
    	// Generate error response.
    	errorResponse := getAPIErrorResponse(ctx, err, reqURL.Path,
    		w.Header().Get(xhttp.AmzRequestID), w.Header().Get(xhttp.AmzRequestHostID))
    	encodedErrorResponse := encodeResponse(errorResponse)
    	writeResponse(w, err.HTTPStatusCode, encodedErrorResponse, mimeXML)
    }
    
    func writeErrorResponseHeadersOnly(w http.ResponseWriter, err APIError) {
    	w.Header().Set(xMinIOErrCodeHeader, err.Code)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    	errResp := func(err error) {
    		errorResponse := getAPIErrorResponse(ctx, toAdminAPIErr(ctx, err), r.URL.String(),
    			w.Header().Get(xhttp.AmzRequestID), w.Header().Get(xhttp.AmzRequestHostID))
    		encodedErrorResponse := encodeResponse(errorResponse)
    		healthInfo.Error = string(encodedErrorResponse)
    		adminLogIf(ctx, enc.Encode(healthInfo))
    	}
    
    	deadline := 10 * time.Second // Default deadline is 10secs for health diagnostics.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top