NewObjectPartialContent creates a new Reader with a 206 Partial Content status.
(headers http.Header, body io.ReadCloser)
| 44 | |
| 45 | // NewObjectPartialContent creates a new Reader with a 206 Partial Content status. |
| 46 | func NewObjectPartialContent(headers http.Header, body io.ReadCloser) *ObjectReader { |
| 47 | return &ObjectReader{ |
| 48 | Status: http.StatusPartialContent, |
| 49 | Headers: headers, |
| 50 | Body: body, |
| 51 | contentLength: -1, // is set in Response() |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | // NewObjectNotFound creates a new Reader with a 404 Not Found status. |
| 56 | func NewObjectNotFound(message string) *ObjectReader { |
no outgoing calls
no test coverage detected