MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / CurlWriteCtx

Class CurlWriteCtx

server/src/server/http_server.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129#ifdef DFLASH_HAS_CURL
130
131struct CurlWriteCtx {
132 int client_fd;
133 bool streaming;
134 bool first_chunk;
135 bool chat_rewrite; // rewrite completions → chat format
136 std::string buffer; // accumulates non-streaming response
137 std::string response_id;
138 std::string model;
139};
140
141static size_t curl_write_passthrough(char * ptr, size_t size, size_t nmemb, void * userdata) {
142 size_t total = size * nmemb;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected