Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for WriteResponse (0.13 sec)

  1. cmd/healthcheck-handler.go

    		// take this server down, return appropriate error.
    		if opts.Maintenance {
    			writeResponse(w, http.StatusPreconditionFailed, nil, mimeNone)
    		} else {
    			writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
    		}
    		return
    	}
    	writeResponse(w, http.StatusOK, nil, mimeNone)
    }
    
    // ClusterReadCheckHandler returns if the server is ready for requests.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 26 07:44:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. cmd/api-response.go

    func writeSuccessResponseJSON(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeJSON)
    }
    
    // writeSuccessResponseXML writes success headers and response if any,
    // with content-type set to `application/xml`.
    func writeSuccessResponseXML(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeXML)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  3. cmd/object-api-options.go

    			APIErrorResponse: getAPIErrorResponse(
    				ctx,
    				apiErr,
    				r.URL.Path,
    				w.Header().Get(xhttp.AmzRequestID),
    				w.Header().Get(xhttp.AmzRequestHostID),
    			),
    		}
    
    		writeResponse(w, apiErr.HTTPStatusCode, encodeResponse(errResp), mimeXML)
    	}()
    
    	opts, err = getOpts(ctx, r, bucket, object)
    	if err != nil {
    		switch vErr := err.(type) {
    		case InvalidVersionID:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. cmd/bucket-handlers.go

    	case "201":
    		resp := encodeResponse(PostResponse{
    			Bucket:   objInfo.Bucket,
    			Key:      objInfo.Name,
    			ETag:     `"` + objInfo.ETag + `"`,
    			Location: w.Header().Get(xhttp.Location),
    		})
    		writeResponse(w, http.StatusCreated, resp, mimeXML)
    	case "200":
    		writeSuccessResponseHeadersOnly(w)
    	default:
    		writeSuccessNoContent(w)
    	}
    }
    
    // GetBucketPolicyStatusHandler -  Retrieves the policy status
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    				BucketName: bucket,
    				Key:        object,
    				Resource:   r.URL.Path,
    				RequestID:  w.Header().Get(xhttp.AmzRequestID),
    				HostID:     globalDeploymentID(),
    			})
    			writeResponse(w, serr.HTTPStatusCode(), encodedErrorResponse, mimeXML)
    		} else {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		}
    		return
    	}
    	defer s3Select.Close()
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
Back to top