Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 40976576505203f8bb00bd1d4581832c > files > 43

python3-httpretty-0.9.6-1.mga7.noarch.rpm

Acknowledgements
################

caveats
=======

``forcing_headers`` + ``Content-Length``
----------------------------------------

When using the ``forcing_headers`` option make sure to add the header
``Content-Length`` otherwise calls using :py:mod:`requests` will try
to load the response endlessly.

supported libraries
-------------------

Because HTTPretty works in the socket level it should work with any HTTP client libraries, although it is `battle tested <https://github.com/gabrielfalcao/HTTPretty/tree/master/tests/functional>`_ against:

* `requests <http://docs.python-requests.org/en/latest/>`_
* `httplib2 <http://code.google.com/p/httplib2/>`_
* `urllib2 <http://docs.python.org/2/library/urllib2.html>`_