Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/erpc/erpc
/ WriteHeader
Method
WriteHeader
erpc/http_timeout.go:196–200 ·
view source on GitHub ↗
(code int)
Source
from the content-addressed store, hash-verified
194
}
195
196
func
(tw *timeoutWriter) WriteHeader(code int) {
197
tw.mu.Lock()
198
defer
tw.mu.Unlock()
199
tw.writeHeaderLocked(code)
200
}
Callers
15
handle
Method · 0.80
newBenchUpstream
Function · 0.80
handleHealthCheck
Method · 0.80
TestTimeoutHandler_TimeoutReturnsJsonRpcError
Function · 0.80
TestTimeoutHandler_SuccessfulResponse
Function · 0.80
TestTimeoutWriter_Header
Function · 0.80
TestTimeoutWriter_Push
Function · 0.80
BenchmarkTimeoutHandler
Function · 0.80
TestHttpServer_HandleHealthCheck
Function · 0.80
startConsensusMockServers
Function · 0.80
ServeHTTP
Method · 0.80
createRequestHandler
Method · 0.80
Calls
3
writeHeaderLocked
Method · 0.95
Lock
Method · 0.65
Unlock
Method · 0.65
Tested by
9
newBenchUpstream
Function · 0.64
TestTimeoutHandler_TimeoutReturnsJsonRpcError
Function · 0.64
TestTimeoutHandler_SuccessfulResponse
Function · 0.64
TestTimeoutWriter_Header
Function · 0.64
TestTimeoutWriter_Push
Function · 0.64
BenchmarkTimeoutHandler
Function · 0.64
TestHttpServer_HandleHealthCheck
Function · 0.64
startConsensusMockServers
Function · 0.64
NewConnectionTrackingServer
Function · 0.64