2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>.
3 * All rights reserved. Distributed under the terms of the MIT License.
6 #ifndef SERVER_SETTINGS_H
7 #define SERVER_SETTINGS_H
10 #include <HttpHeaders.h>
15 class ServerSettings
{
17 static status_t
SetBaseUrl(const BUrl
& baseUrl
);
18 static const BString
GetUserAgent();
19 static void AugmentHeaders(BHttpHeaders
& headers
);
20 static BUrl
CreateFullUrl(
21 const BString urlPathComponents
);
24 static void _InitUserAgent();
25 static const BString
_GetUserAgentVersionString();
28 static BString sUserAgent
;
29 static pthread_once_t sUserAgentInitOnce
;
32 #endif // SERVER_SETTINGS_H