Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/stretchr/testify
/ WriteHeader
Method
WriteHeader
http/test_response_writer.go:47–49 ·
view source on GitHub ↗
Deprecated: Use [net/http/httptest] instead.
(i int)
Source
from the content-addressed store, hash-verified
45
46
// Deprecated: Use [net/http/httptest] instead.
47
func
(rw *TestResponseWriter) WriteHeader(i int) {
48
rw.StatusCode = i
49
}
Callers
8
Write
Method · 0.95
httpOK
Function · 0.80
httpReadBody
Function · 0.80
httpRedirect
Function · 0.80
httpError
Function · 0.80
httpStatusCode
Function · 0.80
TestHTTPRequestWithNoParams
Function · 0.80
TestHTTPRequestWithParams
Function · 0.80
Calls
no outgoing calls
Tested by
7
httpOK
Function · 0.64
httpReadBody
Function · 0.64
httpRedirect
Function · 0.64
httpError
Function · 0.64
httpStatusCode
Function · 0.64
TestHTTPRequestWithNoParams
Function · 0.64
TestHTTPRequestWithParams
Function · 0.64