MCPcopy Create free account
hub / github.com/BryanMwangi/pine / WriteHeader

Method WriteHeader

pine.go:745–750  ·  view source on GitHub ↗
(statusCode int)

Source from the content-addressed store, hash-verified

743}
744
745func (rw *responseWriterWrapper) WriteHeader(statusCode int) {
746 if rw.statusCode == 0 {
747 rw.statusCode = statusCode
748 rw.ResponseWriter.WriteHeader(statusCode)
749 }
750}
751
752func (rw *responseWriterWrapper) SetHeader(key, val string) {
753 rw.ResponseWriter.Header().Set(key, val)

Callers 6

TestClient_SendRequestFunction · 0.80
TestClient_ReadResponseFunction · 0.80
JSONMethod · 0.80
StatusMethod · 0.80
SendStatusMethod · 0.80
RenderMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestClient_SendRequestFunction · 0.64
TestClient_ReadResponseFunction · 0.64