MCPcopy Create free account
hub / github.com/devfeel/dotweb / SetStatusCode

Method SetStatusCode

response.go:78–80  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

76}
77
78func (r *Response) SetStatusCode(code int) error {
79 return r.WriteHeader(code)
80}
81
82// WriteHeader sends an HTTP response header with status code. If WriteHeader is
83// not called explicitly, the first call to Write will trigger an implicit

Callers 1

ViewCMethod · 0.80

Calls 1

WriteHeaderMethod · 0.95

Tested by

no test coverage detected