(w http.ResponseWriter, r *http.Request)
| 193 | } |
| 194 | |
| 195 | func (s *Server) CLIHandler(w http.ResponseWriter, r *http.Request) *appError { |
| 196 | ip, err := ipFromRequest(s.IPHeaders, r, true) |
| 197 | if err != nil { |
| 198 | return badRequest(err).WithMessage(err.Error()).AsJSON() |
| 199 | } |
| 200 | fmt.Fprintln(w, ip.String()) |
| 201 | return nil |
| 202 | } |
| 203 | |
| 204 | func (s *Server) CLICountryHandler(w http.ResponseWriter, r *http.Request) *appError { |
| 205 | response, err := s.newResponse(r) |
nothing calls this directly
no test coverage detected