Files
httpbin/README.rst
T
2017-03-16 20:04:14 -04:00

47 lines
1.1 KiB
ReStructuredText

httpbin(1): HTTP Request & Response Service
===========================================
|Deploy|_
.. |Deploy| image:: https://www.herokucdn.com/deploy/button.svg
.. _Deploy: https://heroku.com/deploy?template=https://github.com/kennethreitz/httpbin
Testing an HTTP Library can become difficult sometimes.
`RequestBin <http://requestb.in>`__ is fantastic for testing POST
requests, but doesn't let you control the response. This exists to cover
all kinds of HTTP scenarios. Additional endpoints are being considered.
All endpoint responses are JSON-encoded.
Installing and running from PyPI
--------------------------------
You can install httpbin as a library from PyPI and run it as a WSGI app.
For example, using Gunicorn:
.. code:: bash
$ pip install httpbin
$ gunicorn httpbin:app
Or install and run it directly:
.. code:: bash
$ git clone https://github.com/kennethreitz/httpbin.git
$ pip install -e httpbin
$ python -m httpbin.core [--port=PORT] [--host=HOST]
AUTHOR
------
A `Kenneth Reitz <http://kennethreitz.org/>`__ Project.
SEE ALSO
--------
- https://www.hurl.it
- http://requestb.in
- http://python-requests.org