package resumable
import "github.com/docker/cli/components/engine/registry/resumable"
Index ¶
- func NewRequestReader(c *http.Client, r *http.Request, maxfail uint32, totalsize int64) io.ReadCloser
- func NewRequestReaderWithInitialResponse(c *http.Client, r *http.Request, maxfail uint32, totalsize int64, initialResponse *http.Response) io.ReadCloser
Functions ¶
func NewRequestReader ¶
func NewRequestReader(c *http.Client, r *http.Request, maxfail uint32, totalsize int64) io.ReadCloser
NewRequestReader makes it possible to resume reading a request's body transparently maxfail is the number of times we retry to make requests again (not resumes) totalsize is the total length of the body; auto detect if not provided
func NewRequestReaderWithInitialResponse ¶
func NewRequestReaderWithInitialResponse(c *http.Client, r *http.Request, maxfail uint32, totalsize int64, initialResponse *http.Response) io.ReadCloser
NewRequestReaderWithInitialResponse makes it possible to resume reading the body of an already initiated request.
Source Files ¶
- Version
- v17.12.1-ce+incompatible
- Published
- Feb 27, 2018
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 5 seconds ago –
Tools for package owners.