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

Function newHttpStatInfo

tars/httpserver.go:53–60  ·  view source on GitHub ↗
(reqAddr, pattern string, statusCode int, costTime int64)

Source from the content-addressed store, hash-verified

51}
52
53func newHttpStatInfo(reqAddr, pattern string, statusCode int, costTime int64) *httpStatInfo {
54 return &httpStatInfo{
55 reqAddr: reqAddr,
56 pattern: pattern,
57 statusCode: statusCode,
58 costTime: costTime,
59 }
60}
61
62// ServeHTTP is the server for the TarsHttpMux.
63func (mux *TarsHttpMux) ServeHTTP(w http.ResponseWriter, r *http.Request) {

Callers 1

ServeHTTPMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected