NewObjectInvalidRange creates a new Reader with a 416 Range Not Satisfiable status.
()
| 86 | |
| 87 | // NewObjectInvalidRange creates a new Reader with a 416 Range Not Satisfiable status. |
| 88 | func NewObjectInvalidRange() *ObjectReader { |
| 89 | return &ObjectReader{ |
| 90 | Status: http.StatusRequestedRangeNotSatisfiable, |
| 91 | contentLength: 0, |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | // ContentLength returns the content length of the response. |
| 96 | func (r *ObjectReader) ContentLength() int64 { |
no outgoing calls
no test coverage detected