MCPcopy
hub / github.com/keploy/keploy / writeBadGateway

Function writeBadGateway

pkg/agent/proxy/incoming/http.go:996–998  ·  view source on GitHub ↗
(c net.Conn)

Source from the content-addressed store, hash-verified

994}
995
996func writeBadGateway(c net.Conn) {
997 _, _ = c.Write([]byte("HTTP/1.1 502 Bad Gateway\r\nContent-Length: 0\r\nConnection: close\r\n\r\n"))
998}
999
1000// writeBadRequest is the client-side counterpart to writeBadGateway:
1001// 400-class so the failure isn't misattributed to the upstream by

Callers 1

handleHttp1ZeroCopyMethod · 0.85

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected