Skip to content
Myr

Merge pull request #1494 from Lukasa/close

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

Document the Response.close() method.

authored by Cory Benfield · committed by Cory Benfield · parents 77bd9c4, f401287 · Browse files · 1 file+5 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+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:requests/models.py+5 added
696 unmodified lines
697 if http_error_msg:698 raise HTTPError(http_error_msg, response=self)699700 def close(self):701 """Closes the underlying file descriptor and releases the connection702 back to the pool.703704 *Note: Should not normally need to be called explicitly.*705 """706 return self.raw.release_conn()