MCPcopy
hub / github.com/TarsCloud/TarsGo / WriteHeader

Method WriteHeader

tars/httpserver.go:154–157  ·  view source on GitHub ↗

WriteHeader is used for write the http header with the http code.

(code int)

Source from the content-addressed store, hash-verified

152
153// WriteHeader is used for write the http header with the http code.
154func (w *TarsResponseWriter) WriteHeader(code int) {
155 w.StatusCode = code
156 w.ResponseWriter.WriteHeader(code)
157}
158
159// Hijack add Hijack method for TarsResponseWriter
160func (w *TarsResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {

Callers 3

ZipkinHttpMiddlewareFunction · 0.80
BuildHttpHandlerMethod · 0.80
ServeHTTPMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected