DoTimeout performs the given request and waits for response during the given timeout duration.
Request must contain at least non-zero RequestURI with full url (including scheme and host) or non-zero Host header + RequestURI.
The function doesn't follow redirects. Use Get* for following redirects.
Response is ignored if resp is nil.
ErrTimeout is returned if the response wasn't returned during the given timeout.
ErrNoFreeConns is returned if all HostClient.MaxConns connections to the host are busy.
/ It is recommended obtaining req and resp via AcquireRequest and AcquireResponse in performance-critical code.
DoTimeout is referenced in 1 repository