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

Function json_response

app/server/http.cpp:307–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305 const auto request = read_http_request(socket.get());
306 const auto response = handler.handle(request);
307 if (response.stream_body) {
308 send_all(socket.get(), serialize_stream_headers(response));
309 ChunkedHttpStreamWriter writer(socket.get());
310 try {
311 response.stream_body(writer);
312 } catch (const std::exception & ex) {

Callers 6

handleMethod · 0.85
handle_speechMethod · 0.85
run_transcriptionMethod · 0.85
handle_generic_runMethod · 0.85
handle_voicesMethod · 0.85
error_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected