MCPcopy Index your code
hub / github.com/coder/coder / WriteHeader

Method WriteHeader

site/site.go:587–587  ·  view source on GitHub ↗
(int)

Source from the content-addressed store, hash-verified

585func (noopResponseWriter) Header() http.Header { return http.Header{} }
586func (noopResponseWriter) Write(p []byte) (int, error) { return len(p), nil }
587func (noopResponseWriter) WriteHeader(int) {}
588
589// secureHeaders is only needed for statically served files. We do not need this for api endpoints.
590// It adds various headers to enforce browser security features.

Callers 15

TestRecoverFunction · 0.45
serveScriptFunction · 0.45
TarFunction · 0.45
showErrorFunction · 0.45
mainFunction · 0.45
TarWithOptionsFunction · 0.45
RenderStaticErrorPageFunction · 0.45
ServeHTTPMethod · 0.45
CreateTarFromFilesFunction · 0.45
handlePurgeMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestRecoverFunction · 0.36
serveScriptFunction · 0.36
testServerFunction · 0.36