MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / set_curl_post_result_options

Method set_curl_post_result_options

src/runtime.cpp:208–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void runtime::set_curl_post_result_options()
209{
210 curl_easy_reset(m_curl_handle);
211 curl_easy_setopt(m_curl_handle, CURLOPT_TIMEOUT, 0L);
212 curl_easy_setopt(m_curl_handle, CURLOPT_CONNECTTIMEOUT, 1L);
213 curl_easy_setopt(m_curl_handle, CURLOPT_NOSIGNAL, 1L);
214 curl_easy_setopt(m_curl_handle, CURLOPT_TCP_NODELAY, 1L);
215 curl_easy_setopt(m_curl_handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
216
217 curl_easy_setopt(m_curl_handle, CURLOPT_POST, 1L);
218 curl_easy_setopt(m_curl_handle, CURLOPT_READFUNCTION, read_data);
219 curl_easy_setopt(m_curl_handle, CURLOPT_WRITEFUNCTION, write_data);
220 curl_easy_setopt(m_curl_handle, CURLOPT_HEADERFUNCTION, write_header);
221
222 curl_easy_setopt(m_curl_handle, CURLOPT_PROXY, "");
223
224#ifndef NDEBUG
225 curl_easy_setopt(m_curl_handle, CURLOPT_VERBOSE, 1);
226 curl_easy_setopt(m_curl_handle, CURLOPT_DEBUGFUNCTION, rt_curl_debug_callback);
227#endif
228}
229
230runtime::next_outcome runtime::get_next()
231{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected