MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / start_next_request

Method start_next_request

boost-http/http.cpp:70–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 }
69
70 void start_next_request() {
71 switch (req_.method()) {
72 case http::verb::get:
73 case http::verb::post:
74 handle_request();
75 break;
76 case http::verb::options:
77 send_headers(http::status::no_content, "", {});
78 finish();
79 break;
80 default:
81 send_error(http::status::method_not_allowed, "Method not allowed\n");
82 break;
83 }
84 }
85
86 void handle_request() {
87 HttpCallback::RequestType request_type = HttpCallback::RequestType::Get;

Callers 1

read_next_requestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected