AWS SDK for C++  1.9.19
AWS SDK for C++
Public Member Functions | Public Attributes | List of all members
Aws::HttpOptions Struct Reference

#include <Aws.h>

Public Member Functions

 HttpOptions ()

Public Attributes

std::function< std::shared_ptr< Aws::Http::HttpClientFactory >)> httpClientFactory_create_fn
bool initAndCleanupCurl
bool installSigPipeHandler

Detailed Description

SDK wide options for http

Definition at line 81 of file Aws.h.

Constructor & Destructor Documentation

◆ HttpOptions()

Aws::HttpOptions::HttpOptions ( )

Definition at line 83 of file Aws.h.

Member Data Documentation

◆ httpClientFactory_create_fn

std::function<std::shared_ptr<Aws::Http::HttpClientFactory>)> Aws::HttpOptions::httpClientFactory_create_fn

Defaults to empty, if this is set, then the result of your closure will be installed and used instead of the system defaults

Definition at line 89 of file Aws.h.

◆ initAndCleanupCurl

bool Aws::HttpOptions::initAndCleanupCurl

libCurl infects everything with its global state. If it is being used then we automatically initialize and clean it up. If this is a problem for you, set this to false. If you manually initialize libcurl please add the option CURL_GLOBAL_ALL to your init call.

Definition at line 94 of file Aws.h.

◆ installSigPipeHandler

bool Aws::HttpOptions::installSigPipeHandler

Installs a global SIGPIPE handler that logs the error and prevents it from terminating the current process. This can be used on operating systems on which CURL is being used. In some situations CURL cannot avoid triggering a SIGPIPE. For more information see: NOTE: CURLOPT_NOSIGNAL is already being set.

Definition at line 102 of file Aws.h.

The documentation for this struct was generated from the following file: