• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KIO

  • sources
  • kde-4.14
  • kdelibs
  • kio
  • kio
http_slave_defaults.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef _KIO_HTTP_SLAVE_DEFAULTS_H
20 #define _KIO_HTTP_SLAVE_DEFAULTS_H
21 
22 // CONNECTION
23 #define DEFAULT_KEEP_ALIVE_TIMEOUT 60 // 60 seconds
24 
25 // CACHE SETTINGS
26 #define DEFAULT_MAX_CACHE_SIZE 50*1024 // 50 MB
27 #define DEFAULT_MAX_CACHE_AGE 60*60*24*14 // 14 DAYS
28 #define DEFAULT_CACHE_EXPIRE 3*60 // 3 MINS
29 #define DEFAULT_CLEAN_CACHE_INTERVAL 30*60 // 30 MINS
30 #define DEFAULT_CACHE_CONTROL KIO::CC_Refresh // Verify with remote
31 #define CACHE_REVISION "9\n" // Cache version
32 
33 // DEFAULT USER AGENT KEY - ENABLES OS NAME
34 #define DEFAULT_USER_AGENT_KEYS "om" // Show OS, Machine
35 
36 // MAXIMUM AMOUNT OF DATA THAT CAN BE SAFELY SENT OVER IPC
37 #define MAX_IPC_SIZE 1024*8
38 
39 // AMOUNT OF DATA TO OBTAIN FROM THE SERVER BY DEFAULT
40 #define DEFAULT_BUF_SIZE 1024*4
41 
42 // SOME DEFAULT HEADER VALUES
43 #define DEFAULT_LANGUAGE_HEADER "en"
44 #define DEFAULT_MIME_TYPE "text/html"
45 #define DEFAULT_PARTIAL_CHARSET_HEADER "utf-8, *;q=0.5"
46 #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"
47 
48 #endif //KIO_HTTP_SLAVE_DEFAULTS_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal