MCPcopy Create free account
hub / github.com/ByConity/ByConity / startSendHeaders

Method startSendHeaders

src/Server/HTTP/WriteBufferFromHTTPServerResponse.cpp:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26void WriteBufferFromHTTPServerResponse::startSendHeaders()
27{
28 if (!headers_started_sending)
29 {
30 headers_started_sending = true;
31
32 if (add_cors_header)
33 response.set("Access-Control-Allow-Origin", "*");
34
35 setResponseDefaultHeaders(response, keep_alive_timeout);
36
37 if (!is_http_method_head)
38 std::tie(response_header_ostr, response_body_ostr) = response.beginSend();
39 }
40}
41
42void WriteBufferFromHTTPServerResponse::writeHeaderSummary()
43{

Callers

nothing calls this directly

Calls 3

beginSendMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected