MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / post

Method post

subprojects/llama.cpp/tools/server/server-http.cpp:393–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void server_http_context::post(const std::string & path, const server_http_context::handler_t & handler) const {
394 pimpl->srv->Post(path_prefix + path, [handler](const httplib::Request & req, httplib::Response & res) {
395 server_http_req_ptr request = std::make_unique<server_http_req>(server_http_req{
396 get_params(req),
397 get_headers(req),
398 req.path,
399 req.body,
400 req.is_connection_closed
401 });
402 server_http_res_ptr response = handler(*request);
403 process_handler_response(std::move(request), response, res);
404 });
405}
406

Callers 15

onAppShellExitedMethod · 0.45
showToastMethod · 0.45
executeOnMainMethod · 0.45
executeMethod · 0.45
onFlingMethod · 0.45
runMethod · 0.45
handlePluginCrashMethod · 0.45
FloatingWindowClass · 0.45
notifyProjectUpdateMethod · 0.45
tts-outetts.pyFile · 0.45
update_slotsMethod · 0.45
mainFunction · 0.45

Calls 3

get_paramsFunction · 0.85
get_headersFunction · 0.85
process_handler_responseFunction · 0.85

Tested by 1

dispatchEventMethod · 0.36