(w http.ResponseWriter, r *http.Request)
| 16 | } |
| 17 | |
| 18 | func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 19 | bag := ctxmeta.GetBaggage(r.Context()) |
| 20 | bag.Set("method", r.Method) |
| 21 | bag.Set("path", r.URL.Path) |
| 22 | bag.Set("content_length", r.ContentLength) |
| 23 | fmt.Fprintln(w, "OK") |
| 24 | } |
| 25 | |
| 26 | type Middleware struct { |
| 27 | next http.Handler |
no test coverage detected