MCPcopy
hub / github.com/safing/portmaster / WriteHeader

Method WriteHeader

base/api/enriched-response.go:38–41  ·  view source on GitHub ↗

WriteHeader wraps the original WriteHeader method to extract information.

(code int)

Source from the content-addressed store, hash-verified

36
37// WriteHeader wraps the original WriteHeader method to extract information.
38func (lrw *LoggingResponseWriter) WriteHeader(code int) {
39 lrw.Status = code
40 lrw.ResponseWriter.WriteHeader(code)
41}
42
43// Hijack wraps the original Hijack method, if available.
44func (lrw *LoggingResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {

Callers 12

handleMethod · 0.95
getUpdateResourceFunction · 0.80
ServeHTTPMethod · 0.80
ServeHTTPMethod · 0.80
ServeHTTPMethod · 0.80
ServeHTTPMethod · 0.80
ServeFileFromArchiveFunction · 0.80
ServeHTTPMethod · 0.80
handleMapGraphRequestFunction · 0.80
ServeHTTPMethod · 0.80
TextResponseFunction · 0.80
ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected