Skip to content
Myr

cleanup docs for request defaults

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 47aba0c · Browse files · 2 files+1 added−5 removed
This commit

State

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

Diff stats

2 files+1 added−5 removed

  • other:+1 added−5 removed

2 files+1 added−5 removed

modified:requests/defaults.py+1 added-4 removed
8 unmodified lines
9Configurations:1011:base_headers: Default HTTP headers.12:verbose: Stream to write request logging to.13:timeout: Seconds until request timeout.14:max_redirects: Maximum number of redirects allowed within a request.13:max_redirects: Maximum number of redirects allowed within a request.s15:decode_unicode: Decode unicode responses automatically?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:pool_maxsize: The maximium size of an HTTP connection pool.19:pool_connections: The number of active HTTP connection pools to use.2220"""2122from . import __version__23
17 unmodified lines
modified:requests/models.py-1 removed
181 unmodified lines
182 response.error = getattr(resp, 'error', None)183184 # Save original response for later.185 response.raw = resp186186 response.url = self.full_url.decode('utf-8')187188 return response189
553 unmodified lines