MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / error_response

Function error_response

app/server/http.cpp:311–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 // of a large chunk, trailers, the terminating chunk — be consumed after the
310 // deadline has passed, which is not what "deadline" means to a caller reasoning
311 // about how long the model can be held.
312 void require_within_deadline() const {
313 if (limits_.total_timeout_ms <= 0) {
314 return;
315 }
316 const auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(
317 std::chrono::steady_clock::now() - started_)
318 .count();

Callers 2

handleMethod · 0.85
handle_clientFunction · 0.85

Calls 3

json_responseFunction · 0.85
json_quoteFunction · 0.70
stringFunction · 0.50

Tested by

no test coverage detected