Function
newHttpStatInfo
(reqAddr, pattern string, statusCode int, costTime int64)
Source from the content-addressed store, hash-verified
| 51 | } |
| 52 | |
| 53 | func 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. |
| 63 | func (mux *TarsHttpMux) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
Tested by
no test coverage detected