AWS SDK for C++

AWS SDK for C++ Version 1.11.545

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Aws::HttpOptions Struct Reference

#include <Aws.h>

Public Member Functions

 HttpOptions ()=default
 

Public Attributes

std::function< std::shared_ptr< Aws::Http::HttpClientFactory >()> httpClientFactory_create_fn
 
bool initAndCleanupCurl = true
 
bool installSigPipeHandler = false
 
 
 

Detailed Description

SDK wide options for http

Definition at line 77 of file Aws.h.

Constructor & Destructor Documentation

◆ HttpOptions()

Aws::HttpOptions::HttpOptions ( )
default

Member Data Documentation

◆ compliantRfc3986Encoding

bool Aws::HttpOptions::compliantRfc3986Encoding = false

Disable legacy URL encoding that leaves $&,:@= unescaped for legacy purposes.

Definition at line 101 of file Aws.h.

◆ 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 83 of file Aws.h.

◆ initAndCleanupCurl

bool Aws::HttpOptions::initAndCleanupCurl = true

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 89 of file Aws.h.

◆ installSigPipeHandler

bool Aws::HttpOptions::installSigPipeHandler = false

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: https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html NOTE: CURLOPT_NOSIGNAL is already being set.

Definition at line 97 of file Aws.h.

◆ preservePathSeparators

bool Aws::HttpOptions::preservePathSeparators = false

When constructing Path segments in a URI preserve path separators instead of collapsing slashes. This is useful for aligning with other SDKs and tools on key path for S3 objects as currently the C++ SDK sanitizes the path.

TODO: In the next major release, this will become the default to align better with other SDKs.

Definition at line 109 of file Aws.h.


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