# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# http_slave_defaults.h

    00001 /* This file is part of the KDE libraries
    00002    Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
    00003
    00004    This library is free software; you can redistribute it and/or
    00005    modify it under the terms of the GNU Library General Public
    00006    License version 2 as published by the Free Software Foundation.
    00007
    00008    This library is distributed in the hope that it will be useful,
    00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
    00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00011    Library General Public License for more details.
    00012
    00013    You should have received a copy of the GNU Library General Public License
    00014    along with this library; see the file COPYING.LIB.  If not, write to
    00015    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    00016    Boston, MA 02111-1307, USA.
    00017 */
    00018
    00019 #ifndef _KIO_HTTP_SLAVE_DEFAULTS_H
    00020 #define _KIO_HTTP_SLAVE_DEFAULTS_H
    00021
    00022 // CONNECTION
    00023 #define DEFAULT_KEEP_ALIVE_TIMEOUT      60              // 60 seconds
    00024
    00025 // CACHE SETTINGS
    00026 #define DEFAULT_MAX_CACHE_SIZE          5120            // 5 MB
    00027 #define DEFAULT_MAX_CACHE_AGE           60*60*24*14     // 14 DAYS
    00028 #define DEFAULT_CACHE_EXPIRE            3*60            // 3 MINS
    00029 #define DEFAULT_CLEAN_CACHE_INTERVAL    30*60           // 30 MINS
    00030 #define DEFAULT_CACHE_CONTROL           KIO::CC_Refresh // Verify with remote
    00031 #define CACHE_REVISION                  "7\n"           // Cache version
    00032
    00033 // DEFAULT USER AGENT KEY - ENABLES OS NAME
    00034 #define DEFAULT_USER_AGENT_KEYS         "o"             // Show OS
    00035
    00036 // MAXIMUM AMOUNT OF DATA THAT CAN BE SAFELY SENT OVER IPC
    00037 #define MAX_IPC_SIZE                    1024*8
    00038
    00039 // AMOUNT OF DATA TO OBTAIN FROM THE SERVER BY DEFAULT
    00040 #define DEFAULT_BUF_SIZE                1024*4
    00041
    00042 // SOME DEFAULT HEADER VALUES
    00043 #define DEFAULT_LANGUAGE_HEADER         "en"
    00044 #define DEFAULT_MIME_TYPE               "text/html"
    00045 #define DEFAULT_PARTIAL_CHARSET_HEADER   ", utf-8;q=0.5, *;q=0.5"
    00046
    00047 #define DEFAULT_ACCEPT_HEADER           "text/html, image/jpeg, image/png, text/*, image/*, */*"
    00048
    00049 #endif

This file is part of the documentation for kio Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:23:53 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003