MCPcopy Create free account
hub / github.com/LagPixelLOL/ChatGPTCLIBot / construct_http_delete

Method construct_http_delete

main/interface/network/RequestObject.cpp:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 RequestObject RequestObject::construct_http_delete(
151 const std::string& url, const std::function<void(const std::vector<char>&, CURL*)>& callback,
152 const std::vector<std::string>& headers, const int& timeout_s,
153 const std::function<int(curl_off_t, curl_off_t, curl_off_t, curl_off_t)>& progress_callback) {
154 RequestObject request;
155 request.method = Method::DEL;
156 request.url = url;
157 request.callback = callback;
158 request.headers = headers;
159 request.timeout_s = timeout_s;
160 request.progress = progress_callback;
161 return request;
162 }
163
164 void RequestObject::get_exception() const {
165 if (exception_ptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected