Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 92 for Leider (0.21 sec)

  1. cmd/object-api-options.go

    	xhttp "github.com/minio/minio/internal/http"
    )
    
    func getDefaultOpts(header http.Header, copySource bool, metadata map[string]string) (opts ObjectOptions, err error) {
    	var clientKey [32]byte
    	var sse encrypt.ServerSide
    
    	opts = ObjectOptions{UserDefined: metadata}
    	if copySource {
    		if crypto.SSECopy.IsRequested(header) {
    			clientKey, err = crypto.SSECopy.ParseHTTP(header)
    			if err != nil {
    				return
    			}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  2. cmd/object-handlers-common.go

    	// set object-related metadata headers
    	w.Header().Set(xhttp.LastModified, objInfo.ModTime.UTC().Format(http.TimeFormat))
    
    	if objInfo.ETag != "" {
    		w.Header()[xhttp.ETag] = []string{"\"" + objInfo.ETag + "\""}
    	}
    
    	if objInfo.VersionID != "" {
    		w.Header()[xhttp.AmzVersionID] = []string{objInfo.VersionID}
    	}
    
    	if !objInfo.Expires.IsZero() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. cmd/generic-handlers.go

    			return true
    		}
    	}
    	return false
    }
    
    // isHTTPHeaderSizeTooLarge returns true if the provided
    // header is larger than 8 KB or the user-defined metadata
    // is larger than 2 KB.
    func isHTTPHeaderSizeTooLarge(header http.Header) bool {
    	var size, usersize int
    	for key := range header {
    		length := len(key) + len(header.Get(key))
    		size += length
    		for _, prefix := range userMetadataKeyPrefixes {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. cmd/signature-v4.go

    	if !compareSignatureV4(req.Form.Get(xhttp.AmzSignature), newSignature) {
    		return ErrSignatureDoesNotMatch
    	}
    
    	r.Header.Set("x-amz-signature-age", strconv.FormatInt(UTCNow().Sub(pSignValues.Date).Milliseconds(), 10))
    
    	return ErrNone
    }
    
    // doesSignatureMatch - Verify authorization header with calculated header in accordance with
    //   - http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html
    //
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  5. cmd/s3-zip-handlers.go

    func (api objectAPIHandlers) getObjectInArchiveFileHandler(ctx context.Context, objectAPI ObjectLayer, bucket, object string, w http.ResponseWriter, r *http.Request) {
    	if crypto.S3.IsRequested(r.Header) || crypto.S3KMS.IsRequested(r.Header) { // If SSE-S3 or SSE-KMS present -> AWS fails with undefined error
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrBadRequest), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  6. src/archive/zip/writer.go

    type Writer struct {
    	cw          *countWriter
    	dir         []*header
    	last        *fileWriter
    	closed      bool
    	compressors map[uint16]Compressor
    	comment     string
    
    	// testHookCloseSizeOffset if non-nil is called with the size
    	// of offset of the central directory at Close.
    	testHookCloseSizeOffset func(size, offset uint64)
    }
    
    type header struct {
    	*FileHeader
    	offset uint64
    	raw    bool
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  7. internal/bucket/object/lock/lock.go

    // Maximum 4KiB size per object lock config.
    const maxObjectLockConfigSize = 1 << 12
    
    // ParseObjectLockConfig parses ObjectLockConfig from xml
    func ParseObjectLockConfig(reader io.Reader) (*Config, error) {
    	config := Config{}
    	if err := xml.NewDecoder(io.LimitReader(reader, maxObjectLockConfigSize)).Decode(&config); err != nil {
    		return nil, err
    	}
    
    	return &config, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  8. cmd/sts-handlers.go

    	stsRouter.Methods(http.MethodPost).MatcherFunc(func(r *http.Request, rm *mux.RouteMatch) bool {
    		ctypeOk := wildcard.MatchSimple("application/x-www-form-urlencoded*", r.Header.Get(xhttp.ContentType))
    		authOk := wildcard.MatchSimple(signV4Algorithm+"*", r.Header.Get(xhttp.Authorization))
    		noQueries := len(r.URL.RawQuery) == 0
    		return ctypeOk && authOk && noQueries
    	}).HandlerFunc(httpTraceAll(sts.AssumeRole))
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  9. cmd/object-api-interface.go

    	var header http.Header
    	if etag != "" {
    		header.Set("ETag", etag)
    	}
    	Range := &HTTPRangeSpec{Start: startOffset, End: startOffset + length}
    
    	reader, err := api.GetObjectNInfo(ctx, bucket, object, Range, header, opts)
    	if err != nil {
    		return err
    	}
    	defer reader.Close()
    
    	_, err = xioutil.Copy(writer, reader)
    	return err
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 20 09:05:54 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  10. cmd/admin-handlers.go

    							r.URL.Path, w.Header().Get(xhttp.AmzRequestID),
    							w.Header().Get(xhttp.AmzRequestHostID)))
    					} else {
    						errorRespJSON = encodeResponseJSON(APIErrorResponse{
    							Code:      hr.apiErr.Code,
    							Message:   hr.errBody,
    							Resource:  r.URL.Path,
    							RequestID: w.Header().Get(xhttp.AmzRequestID),
    							HostID:    globalDeploymentID(),
    						})
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
Back to top