ServerSettings
ServerSettings::~ServerSettings()
ServerSettings::SetEnterDebugger(bool enterDebugger)
ServerSettings::ShallEnterDebugger() const
ServerSettings UserlandFS::gServerSettings;
ServerSettings::ServerSettings()
class ServerSettings {
ServerSettings();
~ServerSettings();
extern ServerSettings gServerSettings;
using UserlandFS::ServerSettings;
if (ServerSettings::IsClientTooOld()) {
if (ServerSettings::PreferCache())
if (ServerSettings::DropCache())
ServerSettings::AugmentHeaders(headers);
ServerSettings::CreateFullUrl(urlPathComponent));
if (ServerSettings::ForceNoNetwork()) {
ServerSettings::SetForceNoNetwork(true);
if (!ServerSettings::IsClientTooOld()) {
ServerSettings::SetClientTooOld();
return !ServerSettings::ForceNoNetwork() && IsPlatformNetworkAvailable();
ServerSettings::PreferCache()
ServerSettings::SetPreferCache(bool value)
ServerSettings::DropCache()
ServerSettings::SetDropCache(bool value)
ServerSettings::ForceNoNetwork()
ServerSettings::SetForceNoNetwork(bool value)
ServerSettings::IsClientTooOld()
ServerSettings::SetClientTooOld()
BUrl ServerSettings::sBaseUrl = BUrl(BASEURL_DEFAULT, true);
BString ServerSettings::sUserAgent = BString();
pthread_once_t ServerSettings::sUserAgentInitOnce = PTHREAD_ONCE_INIT;
bool ServerSettings::sPreferCache = false;
bool ServerSettings::sDropCache = false;
bool ServerSettings::sForceNoNetwork = false;
bool ServerSettings::sClientTooOld = false;
BLocker ServerSettings::sLock;
ServerSettings::SetBaseUrl(const BUrl& value)
ServerSettings::CreateFullUrl(const BString urlPathComponents)
ServerSettings::GetUserAgent()
pthread_once(&sUserAgentInitOnce, &ServerSettings::_InitUserAgent);
ServerSettings::_InitUserAgent()
ServerSettings::_GetUserAgentVersionString()
ServerSettings::AugmentHeaders(BHttpHeaders& headers)
class ServerSettings {
BUrl url = ServerSettings::CreateFullUrl(urlPathComponents);
ServerSettings::AugmentHeaders(headers);
if (ServerSettings::IsClientTooOld()) {
BUrl url = ServerSettings::CreateFullUrl(BString("/__api/v2/") << urlPathComponents);
ServerSettings::AugmentHeaders(headers);
if (ServerSettings::SetBaseUrl(BUrl(argv[i + 1], true)) != B_OK) {
ServerSettings::SetForceNoNetwork(true);
ServerSettings::SetPreferCache(true);
ServerSettings::SetDropCache(true);