MCPcopy
hub / github.com/valyala/fasthttp / Timeout

Method Timeout

client.go:1687–1689  ·  view source on GitHub ↗

Timeout implements the Timeout behavior of the net.Error interface. This allows for checks like: if x, ok := err.(interface{ Timeout() bool }); ok && x.Timeout() {

()

Source from the content-addressed store, hash-verified

1685//
1686// if x, ok := err.(interface{ Timeout() bool }); ok && x.Timeout() {
1687func (e *timeoutError) Timeout() bool {
1688 return true
1689}
1690
1691// ErrTimeout is returned from timed out calls.
1692var ErrTimeout = &timeoutError{}

Callers 7

acceptConnFunction · 0.45
defaultErrorHandlerFunction · 0.45
tryReadMethod · 0.45
tryReadTrailerMethod · 0.45
tlsClientHandshakeFunction · 0.45
pipelineWorkerMethod · 0.45
RoundTripMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected