comparison src/core/http.cc @ 397:811697ad826a

http: do proper global init/cleanup of libcurl this is done automagically using RAII
author Paper <paper@tflc.us>
date Fri, 07 Nov 2025 08:39:24 -0500
parents 8ed3b5e8f205
children
comparison
equal deleted inserted replaced
396:8ed3b5e8f205 397:811697ad826a
209 void RequestThread::Stop() 209 void RequestThread::Stop()
210 { 210 {
211 cancelled_ = true; 211 cancelled_ = true;
212 } 212 }
213 213
214 void Init()
215 {
216 curl_global_init(CURL_GLOBAL_ALL);
217 }
218
219 void Quit()
220 {
221 curl_global_cleanup();
222 }
223
214 } // namespace HTTP 224 } // namespace HTTP