MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / sendErrorResponse

Method sendErrorResponse

base/poco/Net/src/HTTPServerConnection.cpp:141–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141void HTTPServerConnection::sendErrorResponse(HTTPServerSession& session, HTTPResponse::HTTPStatus status)
142{
143 HTTPServerResponseImpl response(session);
144 response.setVersion(HTTPMessage::HTTP_1_1);
145 response.setStatusAndReason(status);
146 response.setKeepAlive(false);
147 response.send();
148 session.setKeepAlive(false);
149}
150
151
152void HTTPServerConnection::onServerStopped(const bool& abortCurrent)

Callers

nothing calls this directly

Calls 4

setStatusAndReasonMethod · 0.80
setVersionMethod · 0.45
setKeepAliveMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected