package httputils

import "github.com/docker/docker/pkg/httputils"

Index

Functions

func ResumableRequestReader

func ResumableRequestReader(c *http.Client, r *http.Request, maxfail uint32, totalsize int64) io.ReadCloser

ResumableRequestReader 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 ResumableRequestReaderWithInitialResponse

func ResumableRequestReaderWithInitialResponse(c *http.Client, r *http.Request, maxfail uint32, totalsize int64, initialResponse *http.Response) io.ReadCloser

Source Files

resumablerequestreader.go

Version
v1.3.2
Published
Nov 24, 2014
Platform
js/wasm
Imports
5 packages
Last checked
2 minutes ago

Tools for package owners.