KIO

http_slave_defaults.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2001 Waldo Bastian <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-only
6 */
7 
8 #ifndef _KIO_HTTP_SLAVE_DEFAULTS_H
9 #define _KIO_HTTP_SLAVE_DEFAULTS_H
10 
11 // CONNECTION
12 #define DEFAULT_KEEP_ALIVE_TIMEOUT 60 // 60 seconds
13 
14 // CACHE SETTINGS
15 #define DEFAULT_MAX_CACHE_SIZE 50*1024 // 50 MB
16 #define DEFAULT_MAX_CACHE_AGE 60*60*24*14 // 14 DAYS
17 #define DEFAULT_CACHE_EXPIRE 3*60 // 3 MINS
18 #define DEFAULT_CLEAN_CACHE_INTERVAL 30*60 // 30 MINS
19 #define DEFAULT_CACHE_CONTROL KIO::CC_Refresh // Verify with remote
20 #define CACHE_REVISION "9\n" // Cache version
21 
22 // DEFAULT USER AGENT KEY - ENABLES OS NAME
23 #define DEFAULT_USER_AGENT_KEYS "om" // Show OS, Machine
24 
25 // MAXIMUM AMOUNT OF DATA THAT CAN BE SAFELY SENT OVER IPC
26 #define MAX_IPC_SIZE 1024*8
27 
28 // AMOUNT OF DATA TO OBTAIN FROM THE SERVER BY DEFAULT
29 #define DEFAULT_BUF_SIZE 1024*4
30 
31 // SOME DEFAULT HEADER VALUES
32 #define DEFAULT_LANGUAGE_HEADER "en"
33 #define DEFAULT_MIME_TYPE "text/html"
34 #define DEFAULT_PARTIAL_CHARSET_HEADER "utf-8, *;q=0.5"
35 #define DEFAULT_ACCEPT_HEADER "text/html, text/*;q=0.9, image/jpeg;q=0.9, image/png;q=0.9, image/*;q=0.9, */*;q=0.8"
36 
37 #endif //KIO_HTTP_SLAVE_DEFAULTS_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 13 2020 23:00:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.