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

Function processOptionsRequest

src/Server/HTTPHandler.cpp:118–127  ·  view source on GitHub ↗

Process options request. Useful for CORS.

Source from the content-addressed store, hash-verified

116
117/// Process options request. Useful for CORS.
118void processOptionsRequest(HTTPServerResponse & response, const Poco::Util::LayeredConfiguration & config)
119{
120 /// If can add some headers from config
121 if (tryAddHTTPOptionHeadersFromConfig(response, config))
122 {
123 response.setKeepAlive(false);
124 response.setStatusAndReason(HTTPResponse::HTTP_NO_CONTENT);
125 response.send();
126 }
127}
128}
129
130static std::chrono::steady_clock::duration parseSessionTimeout(

Callers 1

handleRequestMethod · 0.85

Calls 4

setStatusAndReasonMethod · 0.80
setKeepAliveMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected