Home
last modified time | relevance | path

Searched refs:CURL (Results 1 – 25 of 46) sorted by relevance

12

/ohos5.0/foundation/communication/netstack/frameworks/cj/http/include/
H A Dnet_http_client_exec.h68 static bool SetOtherOption(CURL *curl, RequestContext *context);
70 static bool SetRequestOption(CURL *curl, RequestContext *context);
74 static bool SetSSLCertOption(CURL *curl, RequestContext *context);
76 static bool SetDnsOption(CURL *curl, RequestContext *context);
86 static bool AddCurlHandle(CURL *handle, RequestContext *context);
92 static double GetTimingFromCurl(CURL *handle, CURLINFO info);
109 static bool SetMultiPartOption(CURL *curl, RequestContext *context);
112 CURL *curl, RequestContext *context);
122 RequestInfo(RequestContext *c, CURL *h) : context(c), handle(h) {}; in RequestInfo()
125 CURL *handle;
[all …]
/ohos5.0/base/request/request/frameworks/js/napi/include/upload/
H A Dcurl_adp.h53 bool MultiAddHandle(CURLM *curlMulti, std::vector<CURL *> &curlArray);
56 void SetCurlOpt(CURL *curl);
57 void SetHeadData(CURL *curl);
58 void SetHttpPut(CURL *curl);
59 void SetMimePost(CURL *curl);
60 void SetSslOpt(CURL *curl);
61 void SetConnectionOpt(CURL *curl);
62 void SetNetworkOpt(CURL *curl);
63 void SetCallbackOpt(CURL *curl);
64 void SetBehaviorOpt(CURL *curl);
[all …]
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/http_exec/include/
H A Dhttp_exec.h91 static bool SetOtherOption(CURL *curl, RequestContext *context);
95 static bool SetSSLCertOption(CURL *curl, RequestContext *context);
99 static bool SetDnsOption(CURL *curl, RequestContext *context);
101 static bool SetDnsResolvOption(CURL *curl, RequestContext *context);
103 static bool SetCertPinnerOption(CURL *curl, RequestContext *context);
117 static bool AddCurlHandle(CURL *handle, RequestContext *context);
127 static double GetTimingFromCurl(CURL *handle, CURLINFO info);
131 static curl_off_t GetSizeFromCurl(CURL *handle, RequestContext *context);
169 RequestInfo(RequestContext *c, CURL *h) in RequestInfo()
176 CURL *handle;
[all …]
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/http_client/include/
H A Dhttp_client_task.h134 [[nodiscard]] CURL *GetCurlHandle() in GetCurlHandle()
208 bool SetOtherCurlOption(CURL *handle);
215 bool SetServerSSLCertOption(CURL *curl);
222 bool SetSSLCertOption(CURL *curl);
230 CURLcode SslCtxFunction(CURL *curl, void *sslCtx);
237 bool SetUploadOptions(CURL *handle);
304 double GetTimingFromCurl(CURL *handle, CURLINFO info) const;
310 void ProcessCookie(CURL *handle);
316 curl_off_t GetSizeFromCurl(CURL *handle) const;
343 CURL *curlHandle_;
/ohos5.0/foundation/communication/netmanager_base/services/netconnmanager/include/
H A Dnet_http_probe.h63 bool SetHttpOptions(ProbeType probeType, CURL *curl, const std::string &url);
71 bool SetUserInfo(CURL *curlHandler);
72 bool SetProxyInfo(CURL *curlHandler, const std::string &proxyHost, int32_t proxyPort);
90 CURL *httpCurl_ = nullptr;
91 CURL *httpsCurl_ = nullptr;
/ohos5.0/foundation/communication/netstack/utils/profiler_utils/include/
H A Di_network_message.h64 static uint32_t GetIpAddressFromCurlHandle(std::string &ip, CURL *handle);
65 static uint32_t GetEffectiveUrlFromCurlHandle(std::string &effectiveUrl, CURL *handle);
66 static uint32_t GetHttpVersionFromCurlHandle(std::string &httpVersion, CURL *handle);
67 static uint32_t GetTimeInfoFromCurlHandle(TimeInfo &timeInfo, CURL *handle);
H A Dhttp_client_network_message.h29 HttpClient::HttpClientResponse &response, CURL *handle);
36 CURL *handle_ = nullptr;
H A Dhttp_network_message.h29 CURL *handle);
36 CURL *handle_ = nullptr;
/ohos5.0/base/request/request/frameworks/js/napi/src/upload/
H A Dcurl_adp.cpp89 CURL *curl = curl_easy_init(); in MultiAddHandle()
100 void CUrlAdp::SetHeadData(CURL *curl) in SetHeadData()
123 void CUrlAdp::SetBehaviorOpt(CURL *curl) in SetBehaviorOpt()
130 void CUrlAdp::SetCallbackOpt(CURL *curl) in SetCallbackOpt()
138 void CUrlAdp::SetNetworkOpt(CURL *curl) in SetNetworkOpt()
143 void CUrlAdp::SetConnectionOpt(CURL *curl) in SetConnectionOpt()
148 void CUrlAdp::SetSslOpt(CURL *curl) in SetSslOpt()
186 void CUrlAdp::SetCurlOpt(CURL *curl) in SetCurlOpt()
201 void CUrlAdp::SetMimePost(CURL *curl) in SetMimePost()
220 void CUrlAdp::SetHttpPut(CURL *curl) in SetHttpPut()
[all …]
/ohos5.0/base/request/request/frameworks/js/napi/src/legacy/
H A Ddownload_task.cpp98 std::unique_ptr<CURL, decltype(&curl_easy_cleanup)> handle(curl_easy_init(), curl_easy_cleanup); in GetFileSize()
128 bool DownloadTask::SetOption(CURL *handle, curl_slist *&headers) in SetOption()
197 std::shared_ptr<CURL> handle(curl_easy_init(), [headers](CURL *handle) { in DoDownload()
232 void DownloadTask::SetResumeFromLarge(CURL *curl, uint64_t pos) in SetResumeFromLarge()
/ohos5.0/foundation/communication/netstack/utils/profiler_utils/src/
H A Di_network_message.cpp38 uint32_t INetworkMessage::GetIpAddressFromCurlHandle(std::string &ip, CURL *handle) in GetIpAddressFromCurlHandle()
51 uint32_t INetworkMessage::GetEffectiveUrlFromCurlHandle(std::string &effectiveUrl, CURL *handle) in GetEffectiveUrlFromCurlHandle()
64 uint32_t INetworkMessage::GetHttpVersionFromCurlHandle(std::string &httpVersion, CURL *handle) in GetHttpVersionFromCurlHandle()
75 uint32_t INetworkMessage::GetTimeInfoFromCurlHandle(TimeInfo &timeInfo, CURL *handle) in GetTimeInfoFromCurlHandle()
/ohos5.0/foundation/communication/netstack/test/unittest/utils/profiler_utils/
H A DNetstackNetworkProfilerUtilsTest.cpp43 MockNetworkMessage(std::string requestId, CURL *handle) in MockNetworkMessage()
55 CURL *handle_ = nullptr;
87 CURL *GetCurlHandle() in GetCurlHandle()
89 CURL *handle = curl_easy_init(); in GetCurlHandle()
/ohos5.0/foundation/communication/netstack/frameworks/native/http/http_client/
H A Dhttp_client_task.cpp163 CURLcode HttpClientTask::SslCtxFunction(CURL *curl, void *sslCtx) in SslCtxFunction()
196 bool HttpClientTask::SetSSLCertOption(CURL *handle) in SetSSLCertOption()
200 curl_ssl_ctx_callback sslCtxFunc = [](CURL *curl, void *sslCtx, void *parm) -> CURLcode { in SetSSLCertOption()
225 bool HttpClientTask::SetOtherCurlOption(CURL *handle) in SetOtherCurlOption()
256 bool HttpClientTask::SetServerSSLCertOption(CURL *curl) in SetServerSSLCertOption()
272 bool HttpClientTask::SetUploadOptions(CURL *handle) in SetUploadOptions()
524 void HttpClientTask::ProcessCookie(CURL *handle) in ProcessCookie()
562 double HttpClientTask::GetTimingFromCurl(CURL *handle, CURLINFO info) const in GetTimingFromCurl()
573 curl_off_t HttpClientTask::GetSizeFromCurl(CURL *handle) const in GetSizeFromCurl()
/ohos5.0/foundation/communication/netstack/frameworks/cj/http/src/
H A Dnet_http_client_exec.cpp78 bool NetHttpClientExec::AddCurlHandle(CURL *handle, RequestContext *context) in AddCurlHandle()
210 double NetHttpClientExec::GetTimingFromCurl(CURL *handle, CURLINFO info) in GetTimingFromCurl()
221 void NetHttpClientExec::CacheCurlPerformanceTiming(CURL* handle, RequestContext* context) in CacheCurlPerformanceTiming()
510 bool NetHttpClientExec::SetOtherOption(CURL *curl, OHOS::NetStack::Http::RequestContext *context) in SetOtherOption()
541 CURLcode SslCtxFunction(CURL *curl, void *ssl_ctx, void *parm) in SslCtxFunction()
628 bool NetHttpClientExec::SetMultiPartOption(CURL *curl, RequestContext *context) in SetMultiPartOption()
665 CURL *curl, RequestContext *context) in SetFormDataOption()
697 bool NetHttpClientExec::SetSSLCertOption(CURL *curl, OHOS::NetStack::Http::RequestContext *context) in SetSSLCertOption()
721 bool NetHttpClientExec::SetDnsOption(CURL *curl, RequestContext *context) in SetDnsOption()
737 bool NetHttpClientExec::SetRequestOption(CURL *curl, RequestContext *context) in SetRequestOption()
[all …]
/ohos5.0/base/request/request/frameworks/js/napi/include/legacy/
H A Ddownload_task.h47 void SetResumeFromLarge(CURL *curl, uint64_t pos);
54 bool SetOption(CURL *handle, curl_slist *&headers);
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dfetch_manager.cpp50 … std::unique_ptr<CURL, decltype(&curl_easy_cleanup)> handle(curl_easy_init(), &curl_easy_cleanup); in Fetch()
117 bool SetOptionForGet(const RequestData requestData, CURL* curl) const in SetOptionForGet()
144 bool SetOptionForPost(const RequestData requestData, CURL* curl) const in SetOptionForPost()
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/http_exec/src/
H A Dhttp_exec.cpp186 bool HttpExec::AddCurlHandle(CURL *handle, RequestContext *context) in AddCurlHandle()
206 static auto startedCallback = +[](CURL *easyHandle, void *opaqueData) { in AddCurlHandle()
330 double HttpExec::GetTimingFromCurl(CURL *handle, CURLINFO info) in AddCurlHandle()
341 curl_off_t HttpExec::GetSizeFromCurl(CURL *handle, RequestContext *context) in AddCurlHandle()
359 void HttpExec::CacheCurlPerformanceTiming(CURL *handle, RequestContext *context) in AddCurlHandle()
856 CURLcode HttpExec::SslCtxFunction(CURL *curl, void *ssl_ctx, void *parm) in AddCurlHandle()
946 bool HttpExec::SetCertPinnerOption(CURL *curl, RequestContext *context) in AddCurlHandle()
958 bool HttpExec::SetDnsOption(CURL *curl, RequestContext *context) in AddCurlHandle()
1003 bool HttpExec::SetDnsResolvOption(CURL *curl, RequestContext *context) in AddCurlHandle()
1047 bool HttpExec::SetRequestOption(CURL *curl, RequestContext *context) in AddCurlHandle()
[all …]
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/async_context/include/
H A Drequest_context.h139 void SetCurlHandle(CURL *handle);
166 CURL *curlHandle_;
/ohos5.0/foundation/communication/netstack/utils/http_over_curl/include/
H A Drequest_info.h26 CURL *easyHandle;
H A Dtransfer_callbacks.h26 using TransferStartedCallback = std::function<void(CURL *easyHandle, void *opaqueData)>;
H A Depoll_request_handler.h37 void Process(CURL *easyHandle, const TransferStartedCallback &startedCallback,
/ohos5.0/foundation/communication/netstack/frameworks/js/builtin/fetch/src/
H A Dhttp_request.cpp85 std::unique_ptr<CURL, decltype(&curl_easy_cleanup)> handle(curl_easy_init(), curl_easy_cleanup); in Request()
131 bool HttpRequest::SetOption(RequestData *requestData, CURL *curl, ResponseData *responseData) in SetOption()
/ohos5.0/foundation/communication/netstack/frameworks/js/builtin/fetch/include/
H A Dhttp_request.h43 static bool SetOption(RequestData *requestData, CURL *curl, ResponseData *responseData);
H A Dhttp_request_utils.h48 bool EncodeUrlParam(CURL *curl, std::string &url);
/ohos5.0/foundation/communication/netstack/utils/http_over_curl/src/
H A Depoll_request_handler.cpp38 void EpollRequestHandler::Process(CURL *easyHandle, const TransferStartedCallback &startedCallback, in Process()

12