Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultTimeout and UploadTimeout are whole-request deadlines assigned to [http.Client.Timeout]. DefaultTimeout = 45 * time.Second UploadTimeout = 60 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func CloneWithTimeout ¶
CloneWithTimeout shallow-copies base without mutating it and replaces its timeout. It preserves all other fields; referenced transport and cookie-jar state remain shared. A nil base creates a new client, and a non-positive timeout uses DefaultTimeout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.