Skip to content
Myr

strict mode for #269

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 3cc6aca · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:requests/defaults.py+3 added
13 unmodified lines
14:keep_alive: Reuse HTTP Connections?15:max_retries: The number of times a request should be retried in the event of a connection failure.16:danger_mode: If true, Requests will raise errors immediately.17:safe_mode: If true, Requests will catch all errors.18:strict_mode: If true, Requests will do its best to follow RFCs (e.g. POST redirects).19:pool_maxsize: The maximium size of an HTTP connection pool.20:pool_connections: The number of active HTTP connection pools to use.21:encode_uri: If true, URIs will automatically be percent-encoded.22:trust_env: If true, the surrouding environment will be trusted (environ, netrc).2324"""2526SCHEMAS = ['http', 'https']27
14 unmodified lines
42defaults['pool_maxsize'] = 1043defaults['max_retries'] = 044defaults['danger_mode'] = False45defaults['safe_mode'] = False46defaults['strict_mode'] = False47defaults['keep_alive'] = True48defaults['encode_uri'] = True49defaults['trust_env'] = True50
1 unmodified line