Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for writeSuccessResponseXML (0.14 sec)

  1. cmd/dummy-handlers.go

    		return
    	}
    
    	const accelerateDefaultConfig = `<?xml version="1.0" encoding="UTF-8"?><AccelerateConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"/>`
    	writeSuccessResponseXML(w, []byte(accelerateDefaultConfig))
    }
    
    // GetBucketRequestPaymentHandler - GET bucket requestPayment, a dummy api
    func (api objectAPIHandlers) GetBucketRequestPaymentHandler(w http.ResponseWriter, r *http.Request) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 15:25:16 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. cmd/bucket-listobjects-handlers.go

    		return
    	}
    	response := generateListVersionsResponse(ctx, bucket, prefix, marker, versionIDMarker, delimiter, encodingType, maxkeys, listObjectVersionsInfo, checkObjMeta)
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodeResponseList(response))
    }
    
    // ListObjectsV2MHandler - GET Bucket (List Objects) Version 2 with metadata.
    // --------------------------
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. cmd/sts-handlers.go

    	}
    
    	assumeRoleResponse := &AssumeRoleResponse{
    		Result: AssumeRoleResult{
    			Credentials: cred,
    		},
    	}
    
    	assumeRoleResponse.ResponseMetadata.RequestID = w.Header().Get(xhttp.AmzRequestID)
    	writeSuccessResponseXML(w, encodeResponse(assumeRoleResponse))
    }
    
    func (sts *stsAPIHandlers) AssumeRoleWithSSO(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "AssumeRoleSSOCommon")
    
    	claims := stsClaims{}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  4. cmd/bucket-versioning-handler.go

    	}
    
    	configData, err := xml.Marshal(config)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Write bucket versioning configuration to client
    	writeSuccessResponseXML(w, configData)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. cmd/bucket-handlers.go

    	region := globalSite.Region()
    	if region != globalMinioDefaultRegion {
    		encodedSuccessResponse = encodeResponse(LocationResponse{
    			Location: region,
    		})
    	}
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodedSuccessResponse)
    }
    
    // ListMultipartUploadsHandler - GET Bucket (List Multipart uploads)
    // -------------------------
    // This operation lists in-progress multipart uploads. An in-progress
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  6. cmd/bucket-notification-handlers.go

    			return
    		}
    	}
    
    	configData, err := xml.Marshal(config)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseXML(w, configData)
    }
    
    // PutBucketNotificationHandler - This HTTP handler stores given notification configuration as per
    // http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. cmd/object-multipart-handlers.go

    	if res.ChecksumAlgo != "" {
    		w.Header().Set(xhttp.AmzChecksumAlgo, res.ChecksumAlgo)
    	}
    	encodedSuccessResponse := encodeResponse(response)
    
    	// Write success response.
    	writeSuccessResponseXML(w, encodedSuccessResponse)
    }
    
    // CopyObjectPartHandler - uploads a part by copying data from an existing object as data source.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  8. cmd/bucket-lifecycle-handlers.go

    		return
    	}
    
    	if withUpdatedAt {
    		w.Header().Set(xhttp.MinIOLifecycleCfgUpdatedAt, updatedAt.Format(iso8601Format))
    	}
    	// Write lifecycle configuration to client.
    	writeSuccessResponseXML(w, configData)
    }
    
    // DeleteBucketLifecycleHandler - This HTTP handler removes bucket lifecycle configuration.
    func (api objectAPIHandlers) DeleteBucketLifecycleHandler(w http.ResponseWriter, r *http.Request) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. cmd/bucket-encryption-handlers.go

    	}
    
    	configData, err := xml.Marshal(config)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Write bucket encryption configuration to client
    	writeSuccessResponseXML(w, configData)
    }
    
    // DeleteBucketEncryptionHandler - Removes bucket encryption configuration
    func (api objectAPIHandlers) DeleteBucketEncryptionHandler(w http.ResponseWriter, r *http.Request) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. 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)
Back to top