FlatCityBuf C++ reader 0.8.0
Native C++17 reader for FlatCityBuf, the cloud-optimized CityJSON format
Loading...
Searching...
No Matches
fcb::CurlOptions Struct Reference

#include <fcb/http/curl_range_reader.hpp>

Public Attributes

long timeout_ms = 30000
 
long connect_timeout_ms = 10000
 
bool follow_redirects = true
 
std::string user_agent = "flatcitybuf-cpp/0.8"
 
bool require_stable_representation = true
 Require the server to prove the representation has not changed between requests (ETag/If-Match, else Last-Modified).
 

Detailed Description

Definition at line 15 of file curl_range_reader.hpp.

Member Data Documentation

◆ connect_timeout_ms

long fcb::CurlOptions::connect_timeout_ms = 10000

Definition at line 17 of file curl_range_reader.hpp.

Referenced by fcb::CurlRangeReader::Impl::apply_common().

◆ follow_redirects

bool fcb::CurlOptions::follow_redirects = true

Definition at line 18 of file curl_range_reader.hpp.

Referenced by fcb::CurlRangeReader::Impl::apply_common().

◆ require_stable_representation

bool fcb::CurlOptions::require_stable_representation = true

Require the server to prove the representation has not changed between requests (ETag/If-Match, else Last-Modified).

The core issues many ranges against one logical file and assumes they are the same bytes; without a validator a mutating URL silently mixes versions. Turn off only for sources known to be immutable.

Definition at line 26 of file curl_range_reader.hpp.

Referenced by fcb::CurlRangeReader::Impl::rebuild_headers().

◆ timeout_ms

long fcb::CurlOptions::timeout_ms = 30000

Definition at line 16 of file curl_range_reader.hpp.

Referenced by fcb::CurlRangeReader::Impl::apply_common().

◆ user_agent

std::string fcb::CurlOptions::user_agent = "flatcitybuf-cpp/0.8"

Definition at line 19 of file curl_range_reader.hpp.

Referenced by fcb::CurlRangeReader::Impl::apply_common().


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