MCPcopy
hub / github.com/nytimes/gizmo / WriteHeader

Method WriteHeader

server/middleware.go:125–127  ·  view source on GitHub ↗
(h int)

Source from the content-addressed store, hash-verified

123}
124
125func (w *jsonpResponseWriter) WriteHeader(h int) {
126 w.w.WriteHeader(h)
127}
128
129func (w *jsonpResponseWriter) Write(b []byte) (int, error) {
130 return w.buf.Write(b)

Callers 15

TestAuthCallbackFunction · 0.80
TestAuthCustomExceptionsFunction · 0.80
TestAuthHeaderExceptionsFunction · 0.80
TestIdentityTokenSourceFunction · 0.80
TestCORSHandlerFunction · 0.80
TestNoCacheHandlerFunction · 0.80
safelyExecuteRequestMethod · 0.80
JSONToHTTPFunction · 0.80
CORSHandlerFunction · 0.80
JSONContextToHTTPFunction · 0.80

Calls

no outgoing calls

Tested by 13

TestAuthCallbackFunction · 0.64
TestAuthCustomExceptionsFunction · 0.64
TestAuthHeaderExceptionsFunction · 0.64
TestIdentityTokenSourceFunction · 0.64
TestCORSHandlerFunction · 0.64
TestNoCacheHandlerFunction · 0.64
TestPublishRawFunction · 0.64
TestPublishFunction · 0.64
TestGCPPublishFunction · 0.64
TestPublishMultiFunction · 0.64