(w http.ResponseWriter, code int, location string)
| 1000 | } |
| 1001 | |
| 1002 | func sendRedirect(w http.ResponseWriter, code int, location string) int { |
| 1003 | w.Header().Set("Location", location) |
| 1004 | w.WriteHeader(code) |
| 1005 | return code |
| 1006 | } |
| 1007 | |
| 1008 | func cacheControl(next http.Handler) http.Handler { |
| 1009 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
no outgoing calls
no test coverage detected