MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / get

Method get

tools/server/server-http.cpp:422–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void server_http_context::get(const std::string & path, const server_http_context::handler_t & handler) const {
423 pimpl->srv->Get(path_prefix + path, [handler](const httplib::Request & req, httplib::Response & res) {
424 server_http_req_ptr request = std::make_unique<server_http_req>(server_http_req{
425 get_params(req),
426 get_headers(req),
427 req.path,
428 build_query_string(req),
429 req.body,
430 {},
431 req.is_connection_closed
432 });
433 server_http_res_ptr response = handler(*request);
434 process_handler_response(std::move(request), response, res);
435 });
436}
437
438void server_http_context::post(const std::string & path, const server_http_context::handler_t & handler) const {
439 pimpl->srv->Post(path_prefix + path, [handler](const httplib::Request & req, httplib::Response & res) {

Callers 15

mainFunction · 0.45
lora_merge_ctxMethod · 0.45
mtmd_cli_contextMethod · 0.45
init_vision_contextMethod · 0.45
load_mediaMethod · 0.45
chat_add_and_formatFunction · 0.45
eval_messageFunction · 0.45
mainFunction · 0.45
clip_ctxMethod · 0.45
clip_graphMethod · 0.45
clip_model_loaderMethod · 0.45
load_hparamsMethod · 0.45

Calls 4

get_paramsFunction · 0.85
get_headersFunction · 0.85
build_query_stringFunction · 0.85
process_handler_responseFunction · 0.85

Tested by 15

test_peg_parserFunction · 0.36
runMethod · 0.36
mainFunction · 0.36
test_contextMethod · 0.36
decodeMethod · 0.36
decode_tokenMethod · 0.36
decode_tokensMethod · 0.36