MCPcopy Create free account
hub / github.com/supabase/auth / Write

Method Write

internal/api/middleware.go:472–481  ·  view source on GitHub ↗
(bytes []byte)

Source from the content-addressed store, hash-verified

470}
471
472func (t *timeoutResponseWriter) Write(bytes []byte) (int, error) {
473 t.Lock()
474 defer t.Unlock()
475
476 if !t.wroteHeader {
477 t.writeHeaderLocked(http.StatusOK)
478 }
479
480 return t.buf.Write(bytes)
481}
482
483func (t *timeoutResponseWriter) WriteHeader(statusCode int) {
484 t.Lock()

Callers 1

finallyWriteMethod · 0.45

Calls 1

writeHeaderLockedMethod · 0.95

Tested by

no test coverage detected