MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / initConnection

Method initConnection

framework/data_source/curl/curl_data_source.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52using std::string;
53
54CURLConnection *CurlDataSource::initConnection()
55{
56 auto *pHandle = new CURLConnection(mLocation);
57 pHandle->setSSLBackEnd(CURLShareInstance::Instance()->getSslbakcend());
58 pHandle->setSourceConfig(&mConfig);
59 pHandle->setHeaderList(headerList);
60 pHandle->setPost(mBPost, mPostSize, mPostData);
61 return pHandle;
62}
63
64int CurlDataSource::curl_connect(CURLConnection *pConnection, int64_t filePos)
65{

Callers

nothing calls this directly

Calls 5

getSslbakcendMethod · 0.80
setHeaderListMethod · 0.80
setSSLBackEndMethod · 0.45
setSourceConfigMethod · 0.45
setPostMethod · 0.45

Tested by

no test coverage detected