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

Method getClientHeader

src/Server/GRPCServer.cpp:409–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407 }
408
409 std::optional<String> getClientHeader(const String & key) const
410 {
411 const auto & client_metadata = grpc_context.client_metadata();
412 auto it = client_metadata.find(key);
413 if (it != client_metadata.end())
414 return String{it->second.data(), it->second.size()};
415 return std::nullopt;
416 }
417
418 void setTransportCompression(const TransportCompression & transport_compression)
419 {

Callers 1

executeQueryMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected