Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for offsetEnd (0.07 sec)

  1. cmd/httprange.go

    		} else if offsetEnd < 0 {
    			return nil, fmt.Errorf("Last byte position is negative ('%d')", offsetEnd)
    		}
    	}
    
    	switch {
    	case offsetBegin > -1 && offsetEnd > -1:
    		if offsetBegin > offsetEnd {
    			return nil, errInvalidRange
    		}
    		return &HTTPRangeSpec{false, offsetBegin, offsetEnd}, nil
    	case offsetBegin > -1:
    		return &HTTPRangeSpec{false, offsetBegin, -1}, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. cmd/object-api-errors.go

    }
    
    // InvalidRange - invalid range typed error.
    type InvalidRange struct {
    	OffsetBegin  int64
    	OffsetEnd    int64
    	ResourceSize int64
    }
    
    func (e InvalidRange) Error() string {
    	return fmt.Sprintf("The requested range 'bytes=%d-%d' is not satisfiable", e.OffsetBegin, e.OffsetEnd)
    }
    
    // ObjectTooLarge error returned when the size of the object > max object size allowed (5G) per request.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  3. cmd/api-errors.go

    				Description:    e.Error(),
    				HTTPStatusCode: errorCodes[ErrInvalidRange].HTTPStatusCode,
    				ObjectSize:     strconv.FormatInt(e.ResourceSize, 10),
    				RangeRequested: fmt.Sprintf("%d-%d", e.OffsetBegin, e.OffsetEnd),
    			}
    		case InvalidArgument:
    			apiErr = APIError{
    				Code:           "InvalidArgument",
    				Description:    e.Error(),
    				HTTPStatusCode: errorCodes[ErrInvalidRequest].HTTPStatusCode,
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top