MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / NewObjectInvalidRange

Function NewObjectInvalidRange

storage/reader.go:88–93  ·  view source on GitHub ↗

NewObjectInvalidRange creates a new Reader with a 416 Range Not Satisfiable status.

()

Source from the content-addressed store, hash-verified

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

Callers 3

tryRespondWithPartialMethod · 0.92
GetObjectMethod · 0.92
GetObjectMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected