<p dir="auto">"Requests is not accepting feature requests at this time." I see.</p>
<p dir="auto">But really guys, would it be too much to ask to get this implemented into the Sessions? I could submit a PR. Axios and many other libraries support this already, and it comes it really handy.</p>
<p dir="auto">I know there are workarounds, subclass it and what not but that is so ugly when it could be built into the module with ~5 lines of code.</p>
<p dir="auto">Please <g-emoji class="g-emoji" alias="100" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4af.png">💯</g-emoji><br>
Thanks</p>
<p dir="auto">It seems that my code memory used is increase slowly,I find that even the simplest code will lead this.</p>
<h2 dir="auto">Expected Result</h2>
<p dir="auto">memory won't slowly increase</p>
<h2 dir="auto">Actual Result</h2>
<p dir="auto">memory is slowly increase, running after one hour<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12421352/50391984-2c7dd680-0785-11e9-9d68-f69823654145.png"><img src="https://user-images.githubusercontent.com/12421352/50391984-2c7dd680-0785-11e9-9d68-f69823654145.png" alt="_15456276853678" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12421352/50391986-2e479a00-0785-11e9-8c3d-a6f2792ec8a4.png"><img src="https://user-images.githubusercontent.com/12421352/50391986-2e479a00-0785-11e9-8c3d-a6f2792ec8a4.png" alt="_15456315045182" style="max-width: 100%;"></a></p>
<h2 dir="auto">Reproduction Steps</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests
def f():
    while 1:
        s = requests.get('https://www.baidu.com')
        text = s.text

if __name__ == '__main__':
    f()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span>
<span class="pl-k">def</span> <span class="pl-en">f</span>():
    <span class="pl-k">while</span> <span class="pl-c1">1</span>:
        <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'https://www.baidu.com'</span>)
        <span class="pl-s1">text</span> <span class="pl-c1">=</span> <span class="pl-s1">s</span>.<span class="pl-s1">text</span>

<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>:
    <span class="pl-en">f</span>()</pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;chardet&quot;: {
    &quot;version&quot;: &quot;3.0.4&quot;
  },
  &quot;cryptography&quot;: {
    &quot;version&quot;: &quot;2.3.1&quot;
  },
  &quot;idna&quot;: {
    &quot;version&quot;: &quot;2.7&quot;
  },
  &quot;implementation&quot;: {
    &quot;name&quot;: &quot;CPython&quot;,
    &quot;version&quot;: &quot;3.6.6&quot;
  },
  &quot;platform&quot;: {
    &quot;release&quot;: &quot;10&quot;,
    &quot;system&quot;: &quot;Windows&quot;
  },
  &quot;pyOpenSSL&quot;: {
    &quot;openssl_version&quot;: &quot;1010009f&quot;,
    &quot;version&quot;: &quot;18.0.0&quot;
  },
  &quot;requests&quot;: {
    &quot;version&quot;: &quot;2.19.1&quot;
  },
  &quot;system_ssl&quot;: {
    &quot;version&quot;: &quot;100020ff&quot;
  },
  &quot;urllib3&quot;: {
    &quot;version&quot;: &quot;1.23&quot;
  },
  &quot;using_pyopenssl&quot;: true
}
"><pre class="notranslate"><code class="notranslate">{
  "chardet": {
    "version": "3.0.4"
  },
  "cryptography": {
    "version": "2.3.1"
  },
  "idna": {
    "version": "2.7"
  },
  "implementation": {
    "name": "CPython",
    "version": "3.6.6"
  },
  "platform": {
    "release": "10",
    "system": "Windows"
  },
  "pyOpenSSL": {
    "openssl_version": "1010009f",
    "version": "18.0.0"
  },
  "requests": {
    "version": "2.19.1"
  },
  "system_ssl": {
    "version": "100020ff"
  },
  "urllib3": {
    "version": "1.23"
  },
  "using_pyopenssl": true
}

</code></pre></div>