MCPcopy Create free account
hub / github.com/alibaba/loongcollector / InternalServerError

Function InternalServerError

plugins/input/httpserver/input_http_server.go:220–223  ·  view source on GitHub ↗
(res http.ResponseWriter)

Source from the content-addressed store, hash-verified

218}
219
220func InternalServerError(res http.ResponseWriter) {
221 res.Header().Set("Content-Type", "application/json")
222 res.WriteHeader(http.StatusInternalServerError)
223}
224
225func BadRequest(res http.ResponseWriter) {
226 res.Header().Set("Content-Type", "application/json")

Callers 2

handleInvalidRequestFunction · 0.92
ServeHTTPMethod · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected