<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Acknowledgements — HTTPretty 0.9.6 documentation</title> <script type="text/javascript" src="_static/js/modernizr.min.js"></script> <script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <script type="text/javascript" src="_static/language_data.js"></script> <script type="text/javascript" src="_static/js/theme.js"></script> <link rel="stylesheet" href="_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="next" title="API Reference" href="api.html" /> <link rel="prev" title="What is HTTPretty ?" href="introduction.html" /> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="index.html" class="icon icon-home"> HTTPretty </a> <div class="version"> 0.9.6 </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="introduction.html">What is HTTPretty ?</a></li> <li class="toctree-l1"><a class="reference internal" href="introduction.html#demo">Demo</a></li> <li class="toctree-l1"><a class="reference internal" href="introduction.html#motivation">Motivation</a></li> <li class="toctree-l1 current"><a class="current reference internal" href="#">Acknowledgements</a><ul> <li class="toctree-l2"><a class="reference internal" href="#caveats">caveats</a><ul> <li class="toctree-l3"><a class="reference internal" href="#forcing-headers-content-length"><code class="docutils literal notranslate"><span class="pre">forcing_headers</span></code> + <code class="docutils literal notranslate"><span class="pre">Content-Length</span></code></a></li> <li class="toctree-l3"><a class="reference internal" href="#supported-libraries">supported libraries</a></li> </ul> </li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="api.html">API Reference</a></li> <li class="toctree-l1"><a class="reference internal" href="api.html#modules">Modules</a></li> <li class="toctree-l1"><a class="reference internal" href="contributing.html">Hacking on HTTPretty</a></li> <li class="toctree-l1"><a class="reference internal" href="contributing.html#license">License</a></li> <li class="toctree-l1"><a class="reference internal" href="contributing.html#main-contributors">Main contributors</a></li> <li class="toctree-l1"><a class="reference internal" href="changelog.html">Release Notes</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="index.html">HTTPretty</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="index.html">Docs</a> »</li> <li>Acknowledgements</li> <li class="wy-breadcrumbs-aside"> <a href="_sources/acks.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="acknowledgements"> <h1>Acknowledgements<a class="headerlink" href="#acknowledgements" title="Permalink to this headline">¶</a></h1> <div class="section" id="caveats"> <h2>caveats<a class="headerlink" href="#caveats" title="Permalink to this headline">¶</a></h2> <div class="section" id="forcing-headers-content-length"> <h3><code class="docutils literal notranslate"><span class="pre">forcing_headers</span></code> + <code class="docutils literal notranslate"><span class="pre">Content-Length</span></code><a class="headerlink" href="#forcing-headers-content-length" title="Permalink to this headline">¶</a></h3> <p>When using the <code class="docutils literal notranslate"><span class="pre">forcing_headers</span></code> option make sure to add the header <code class="docutils literal notranslate"><span class="pre">Content-Length</span></code> otherwise calls using <code class="xref py py-mod docutils literal notranslate"><span class="pre">requests</span></code> will try to load the response endlessly.</p> </div> <div class="section" id="supported-libraries"> <h3>supported libraries<a class="headerlink" href="#supported-libraries" title="Permalink to this headline">¶</a></h3> <p>Because HTTPretty works in the socket level it should work with any HTTP client libraries, although it is <a class="reference external" href="https://github.com/gabrielfalcao/HTTPretty/tree/master/tests/functional">battle tested</a> against:</p> <ul class="simple"> <li><a class="reference external" href="http://docs.python-requests.org/en/latest/">requests</a></li> <li><a class="reference external" href="http://code.google.com/p/httplib2/">httplib2</a></li> <li><a class="reference external" href="http://docs.python.org/2/library/urllib2.html">urllib2</a></li> </ul> </div> </div> </div> </div> </div> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="api.html" class="btn btn-neutral float-right" title="API Reference" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a> <a href="introduction.html" class="btn btn-neutral float-left" title="What is HTTPretty ?" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> © Copyright 2018, Gabriel Falcao </p> </div> Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>