MCPcopy 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
196func (tw *timeoutWriter) WriteHeader(code int) {
197 tw.mu.Lock()
198 defer tw.mu.Unlock()
199 tw.writeHeaderLocked(code)
200}

Callers 15

handleMethod · 0.80
newBenchUpstreamFunction · 0.80
handleHealthCheckMethod · 0.80
TestTimeoutWriter_HeaderFunction · 0.80
TestTimeoutWriter_PushFunction · 0.80
BenchmarkTimeoutHandlerFunction · 0.80
ServeHTTPMethod · 0.80
createRequestHandlerMethod · 0.80

Calls 3

writeHeaderLockedMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65