(res http.ResponseWriter)
| 223 | } |
| 224 | |
| 225 | func BadRequest(res http.ResponseWriter) { |
| 226 | res.Header().Set("Content-Type", "application/json") |
| 227 | res.WriteHeader(http.StatusBadRequest) |
| 228 | _, _ = res.Write([]byte(`{"error":"http: bad request"}`)) |
| 229 | } |
| 230 | |
| 231 | // Start starts the ServiceInput's service, whatever that may be |
| 232 | func (s *ServiceHTTP) Start(c pipeline.Collector) error { |
no test coverage detected