MCPcopy
hub / github.com/pocketbase/pocketbase / WriteHeader

Method WriteHeader

tools/router/router.go:219–227  ·  view source on GitHub ↗
(status int)

Source from the content-addressed store, hash-verified

217}
218
219func (rw *ResponseWriter) WriteHeader(status int) {
220 if rw.written {
221 return
222 }
223
224 rw.written = true
225 rw.status = status
226 rw.ResponseWriter.WriteHeader(status)
227}
228
229func (rw *ResponseWriter) Write(b []byte) (int, error) {
230 if !rw.written {

Callers 15

WriteMethod · 0.95
ReadFromMethod · 0.95
TestEventStatusFunction · 0.95
TestFetchFunction · 0.45
ErrorHandlerFunction · 0.45
StringMethod · 0.45
HTMLMethod · 0.45
JSONMethod · 0.45
XMLMethod · 0.45
StreamMethod · 0.45
BlobMethod · 0.45

Calls

no outgoing calls

Tested by 5

TestEventStatusFunction · 0.76
TestFetchFunction · 0.36
TestBindFilesystemFunction · 0.36
TestBindHTTPSendFunction · 0.36