# -*- coding: utf-8 -*-

"""
requests.defaults
~~~~~~~~~~~~~~~~~

This module provides the Requests configuration defaults.

settings parameters:

- :base_headers: - Sets default User-Agent to `python-requests.org`
- :accept_gzip:  - Whether or not to accept gzip-compressed data
- :proxies: - http proxies?
- :verbose: - display verbose information?
- :timeout: - timeout time until request terminates
- :max_redirects: - maximum number of allowed redirects?
- :decode_unicode: - whether or not to accept unicode?

"""

from . import __version__

defaults = dict()


defaults['base_headers'] = {
    'User-Agent': 'python-requests/%s' % __version__,
    'Accept-Encoding': ', '.join(('identity', 'deflate', 'compress', 'gzip')),
    'Accept': '*/*'
}

defaults['proxies'] = {}
defaults['verbose'] = None
defaults['timeout'] = None
defaults['max_redirects'] = 30
defaults['decode_unicode'] = True
defaults['timeout_fallback'] = True
defaults['keep_alive'] = True
defaults['pool_connections'] = 10
defaults['pool_maxsize'] = 1
defaults['max_retries'] = 0
defaults['safe_mode'] = False

@@ -750,86 +750,177 @@
 %0A%7D%0A%0A
-defaults%5B'proxies'%5D = %7B%7D%0Adefaults%5B'verbose'%5D = None%0Adefaults%5B'timeout'%5D = None
+%0A#: Stream to log requests to.%0Adefaults%5B'verbose'%5D = None%0A%0A#: Seconds until timeout.%0Adefaults%5B'timeout'%5D = None%0A%0A#: Maximum number of redirects allowed within a request.
 %0Adef
@@ -951,41 +951,43 @@
  30%0A
-defaults%5B'
+%0A#: Should Requests 
 decode
-_
+ 
 unicode
-'%5D = True
+?
 %0Adef
@@ -997,154 +997,433 @@
 ts%5B'
-timeout_fallback'%5D = True%0Adefaults%5B'keep_alive'%5D = True%0Adefaults%5B'pool_connections'%5D = 10%0Adefaults%5B'pool_maxsize'%5D = 1%0Adefaults%5B'max_retries'%5D = 0
+decode_unicode'%5D = True%0A%0A#: Reuse HTTP Connections?%0Adefaults%5B'keep_alive'%5D = True%0A%0A#: The number of active HTTP connection pools to use at a time.%0Adefaults%5B'pool_connections'%5D = 10%0A%0A#: The maximium size of an HTTP connection pool.%0Adefaults%5B'pool_maxsize'%5D = 1%0A%0A#: The number of times a request should be retried in the event of a%0A#: connection failure.%0Adefaults%5B'max_retries'%5D = 0%0A%0A#: If true, Requests will catch all errors.
 %0Adef

document defaults