Documentation
¶
Overview ¶
Package braid provides a way to GET a single HTTP resource using multiple parallel requests.
Index ¶
Constants ¶
View Source
const DefaultJobs = 5
DefaultJobs is the number of parallel HTTP requests to be made by default.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func (*Request) FetchFile ¶
FetchFile fetches the resource, returning the result as an *os.File The caller is responsible for closing the returned file. Filename must be writable, will be created if missing and will be truncated.
func (*Request) SetJobs ¶
SetJobs sets the number of parallel requests that will be made. DefaultJobs is used by default.
func (*Request) SetUserAgent ¶
SetUserAgent sets the 'User-Agent' HTTP header used when making requests
Click to show internal directories.
Click to hide internal directories.